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

"#" in code block bug #22

Open
riverlow opened this issue May 18, 2018 · 1 comment · May be fixed by #24
Open

"#" in code block bug #22

riverlow opened this issue May 18, 2018 · 1 comment · May be fixed by #24

Comments

@riverlow
Copy link

content like this

     1  # title 1
     2  
     3  <!-- ToC start -->
     4  <!-- ToC end -->
     5  
     6  # code
     7  
     8  ```go
     9  code here
    10  # some comment
    11  ```
    12  
    13  # next title
    14  

output is

$ markdown-toc foo.md 
<!-- ToC start -->
# Table of Contents

1. [title 1](#title-1)
1. [code](#code)
1. [some comment](#some-comment)
1. [next title](#next-title)
<!-- ToC end -->

The " # comment " been treated as a title.

@Soontao
Copy link

Soontao commented Jun 15, 2019

same issue, but I think current features are enough, as a walkaround, I move '#' comments out of code

@maciej maciej linked a pull request May 1, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants