markdown-toc icon indicating copy to clipboard operation
markdown-toc copied to clipboard

Ignore lines in code blocks

Open andreaferretti opened this issue 8 years ago • 4 comments

Right now, the plugin misunderstands comment lines inside code blocks for markdown headings. For instance, when writing

```python
# this is a comment
```

the this is a comment line is mistakenly considered a heading

andreaferretti avatar Mar 23 '16 14:03 andreaferretti

Said at #45 and I sent pull request #61 :smiley:

betrue12 avatar Mar 24 '16 05:03 betrue12

also in css code blocks:

    ```css  
    #someClass { width:100%; }  
    ```

hsxfjames avatar Jun 19 '16 16:06 hsxfjames

Hello, I'm in 0.4.2 and still have the same issue

With a simple block code as

```
# foo
```

gaelL avatar Feb 24 '17 08:02 gaelL

Still present in 2020.

FabianNiehaus avatar Jul 21 '20 08:07 FabianNiehaus