mdzk-rs / mdzk

General-purpose interface to connected notes

Home Page:https://mdzk.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`?` in a title/URL is not escaped properly

kmaasrud opened this issue · comments

Our escape function does not work because pulldown-cmarks's escape_href function has an oversight for ? characters. Additionally, mdBook's TOC helper does not escape URLs at all.

This is easily solved by manually escaping ?s in our escape_special_chars function and making sure it's used in our TOC helper.