Conversation

kevanstannard

Suggestion for #162

The Slugger seems to convert non alphanumeric characters to hyphens.

For example (.) => {} is converted to --.

Which results the URL /syntax-lookup#--

What do you think about introducing an id field into the items? This would need to be unique for each item, but would provide a convenient field for converting to a slug.

Which would then enable URLs such as /syntax-lookup#uncurried-function

@ryyppyryyppy merged commit 90ee93f into rescript-lang:syntax-lookup-tool Jan 3, 2021
@ryyppy

Yeah that's better.
Note we will most likely extract that meta data into the frontmatter of each doc file instead (just so you know)

@kevanstannardkevanstannard deleted the syntax-lookup-widget-slug branch January 3, 2021 10:19
Sign up for free to join this conversation on . Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.