Skip to content

Commit

Permalink
Hardcoded S/P/T for easier reading
Browse files Browse the repository at this point in the history
  • Loading branch information
Not-Abram committed Oct 25, 2024
1 parent 54478eb commit 79435a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/viewer/src/components/Shared/SeMarkdown.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
s = s.replace(singlecurly, (_, type, id) => {
// Perform replacement based on type and id
if (type === 'S') {
return `[${type}${id}](https://topology.pi-base.org/spaces/${type}${id})`
return `[S${id}](https://topology.pi-base.org/spaces/S${id})`
} else if (type === 'P') {
return `[${type}${id}](https://topology.pi-base.org/properties/${type}${id})`
return `[P${id}](https://topology.pi-base.org/properties/P${id})`
} else {
return `[${type}${id}](https://topology.pi-base.org/theorems/${type}${id})`
return `[T${id}](https://topology.pi-base.org/theorems/T${id})`
}
})
Expand Down

0 comments on commit 79435a4

Please sign in to comment.