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

title text generated by toc helper is not escaped #2198

Closed
unnamed42 opened this issue Oct 5, 2016 · 1 comment
Closed

title text generated by toc helper is not escaped #2198

unnamed42 opened this issue Oct 5, 2016 · 1 comment

Comments

@unnamed42
Copy link

For example, I have:

## Get modulus of (1<<s)-1

HTML in main document is correct:

<h2 id="get-modulus-of-1-s-1">Get modulus of (1&lt;&lt;s)-1</h2>

But HTML generated by toc() helper is not escaped:

<li class="toc-item toc-level-2">
    <a class="toc-link" href="#get-modulus-of-1-s-1">
        <span class="toc-text">Get modulus of (1<<s)-1</span>
    </a>
</li>

By the way, I'm using hexo-renderer-markdown-it as my markdown renderer.

@unnamed42 unnamed42 changed the title title text generated by toc helper is not correctly escaped title text generated by toc helper is not escaped Oct 7, 2016
@NoahDragon
Copy link
Member

We could move the discuss to the PR #2437 .

JLHwung added a commit that referenced this issue Dec 1, 2017
JLHwung added a commit that referenced this issue Dec 1, 2017
JLHwung added a commit that referenced this issue Dec 1, 2017
JLHwung added a commit that referenced this issue Dec 4, 2017
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

2 participants