Skip to content

Inline HTML is escaped? #314

@oleersoy

Description

@oleersoy

Hi - Thanks for this awesome NPM package. I'm trying to use it in conjunction with AlanWalks TOC Generator.

I created a sample markdown file with HTML anchors:

TEST OUTLINE

- [Header 1](#header-1)
- [Header 2](#header-2)


<a id="markdown-header-1" name="header-1"></a>
## Header 1 
foo boo
<a id="markdown-header-2" name="header-2"></a>
## Header 2
zoo

When I run this through md2html the anchors are espaced:

ole@mki:~/component-site/src/test/md$ md2html test.md test2.html
<p>TEST OUTLINE</p>

<ul><li><a href="#header-1">Header 1</a></li><li><a href="#header-2">Header 2</a></li></ul>

<p>&lt;a id=&quot;markdown-header-1&quot; name=&quot;header-1&quot;&gt;&lt;/a&gt;</p>

<h2>Header 1</h2>

<p>flsdjfalsdjf</p>

<p>&lt;a id=&quot;markdown-header-2&quot; name=&quot;header-2&quot;&gt;&lt;/a&gt;</p>

<h2>Header 2</h2>

Is the a way to turn the escaping off?

TIA,
Ole

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions