jonschlinkert / markdown-toc

API and CLI for generating a markdown TOC (table of contents) for a README or any markdown files. Uses Remarkable to parse markdown. Used by NASA/openmct, Prisma, Joi, Mocha, Sass, Prettier, Orbit DB, FormatJS, Raneto, hapijs/code, webpack-flow, docusaurus, release-it, ts-loader, json-server, reactfire, bunyan, husky, react-easy-state, react-snap, chakra-ui, carbon, alfresco, repolinter, Assemble, Verb, and thousands of other projects.
https://github.com/jonschlinkert
MIT License
1.64k stars 706 forks source link

Strange OpenGL output in place of toc? #193

Closed aboode95 closed 8 months ago

aboode95 commented 8 months ago

I am getting this strange output in place of my toc when trying the read the README.md file in text editor:

<!-- toc -->

- [Enable OpenGL](#enable-opengl)
- [Tell Xorg to use the nvidia driver (also valid for Wayland)](#tell-xorg-to-use-the-nvidia-driver-also-valid-for-wayland)

<!-- tocstop -->

These are not the contents or headings of my README.md.

The code I ran was:

$ ./node_modules/.bin/markdown-toc -i README.md 

Am I doing something strange or wrong?

aboode95 commented 8 months ago

So Apparently the issue was that my markdown editor added code block (```) around \. which caused that weird output to appear. Removing the ``` fixed the issue.