mixu / markdown-styles

Markdown to static HTML generator and multiple CSS themes for Markdown
1.85k stars 251 forks source link

Links and special characters #59

Open rekna1 opened 6 years ago

rekna1 commented 6 years ago

When using special characters in headings, links to the heading don't work.

Including : [ ] ! ( ) :

In markdown, the code below navigates to the heading

 [Two way binding [(ngModel)]](#two-way-binding-ngmodel)

## Two way binding [(ngModel)]

but when converted to html, the link doesn't work

<a href="#two-way-binding-ngmodel">Two way binding [(ngModel)]</a>

<h2 id="two-way-binding-[(ngmodel)]"><a class="header-link" href="#two-way-binding-[(ngmodel)]"></a>Two way binding [(ngModel)]</h2>