Comments (1)
Looks like the author never answered, but looking at the source code, this tool passes the content to the GitHub API /markdown
endpoint. GitHub implements a "GitHub flavor" of Commonmark, and the behavior you're experiencing is documented here: https://github.github.com/gfm/#indented-code-blocks
In short, it looks like the behavior is correct according to the spec. You'd need to alter your Markdown in order for your markup to be parsed as a list as opposed to a code block.
from github-markdown-toc.go.
Related Issues (20)
- Can't display normally in gitbook
- Running setup is racecy and doesn't write an MBR reliably HOT 1
- ?access_token will stop functioning in the GitHub API soon
- Option for start depth
- [BUG] Can't work well when the text > 400KB HOT 1
- [Feature] Add --insert option (like in shell project) HOT 2
- New release HOT 4
- [BUG] TOC picks up YAML
- The released gh-md-toc.linux.amd64.tgz prints http headers
- [Feature] --insert flag HOT 1
- [Feature] support `go install`-based installation HOT 4
- [ Report ] Can't create a TOC because GitHub API's response has changed HOT 1
- regression test failure with github-markdown-toc 1.2.0 HOT 4
- [Question] Hi,it had worked correctly before, but do not work now and prompt such information. HOT 3
- [BUG] [Windows release] Doesn't output any TOC, just a list of HTTP headers HOT 9
- [Feature] Replace TOC comment in place on a folder HOT 2
- [Feature] Sends data to github.com (should be able to send to internal github enterprise instead)
- [ BUG ] Unable to generate TOC
- [ BUG ] empty render
- Your code is completely broken now HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-markdown-toc.go.