gjtorikian / html-pipeline

HTML processing filters and utilities
MIT License
2.27k stars 380 forks source link

code in header produce invalid anchor #308

Closed ghost closed 3 years ago

ghost commented 5 years ago

If you use some markup like this:

`aaaaa`
-------

bbbbb

I would expect this result:

#aaaaa

however what is generated is:

#codeaaaaacode

https://github.com/jch/html-pipeline/blob/af66272dc34e13f48fff97c3b7b42e64e82877f2/lib/html/pipeline/toc_filter.rb#L28-L64

gjtorikian commented 3 years ago

Old issue