You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You must generate ids from the third argument passed to the heading generator, which contains the textual (unescaped) content of the heading, like this:
I'm currently trying to make the parsed heading ids match GitHub's markdown anchor conversion rules.
My regular expressions work when tested, but the moment I include it in the render apostrophes stop working.
By apostrophe I mean unicode character 39, not 8217.
For example the string "Dijkstra's Shortest Path Algorithm" becomes "dijkstra's-shortest-path-algorithm" in the parsed html, but running
properly returns "dijkstras-shortest-path-algorithm".
Am I doing something wrong here? Is this intended or a bug?
The text was updated successfully, but these errors were encountered: