Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline HTML is escaped? #314

Open
oleersoy opened this issue May 18, 2019 · 2 comments
Open

Inline HTML is escaped? #314

oleersoy opened this issue May 18, 2019 · 2 comments

Comments

@oleersoy
Copy link

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

@gaecoli
Copy link

gaecoli commented Feb 25, 2022

+1

@clz619
Copy link

clz619 commented Feb 25, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants