🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

I released some Perl scripts to manipulate Github markdown files -- add TOC, convert Dokuwiki to md

Started by
0 comments, last by wqking 5 years, 5 months ago

The code is on Github,
https://github.com/wqking/markdownutil

Your feedback and contributes are welcome.

The scripts

addtoc2md.pl

Adds table of contents to Github flavored Markdown files.

Features

  • Use <a> anchor tag as the TOC target. It doesn't depend on Github auto anchor feature.
  • Can selectively generate TOC for lengthy article with enough headings. (The --min-headings option)
  • Repeating the command on the same file will replace the previous TOC instead of adding more TOC.
  • Code blocks can be handled correctly, the code lines start with '#' won't be treated as headings.

doku2md.pl

Converts Dokuwiki page files to Github flavored Markdown files.

Features

  • Support basic heading and format syntax.
  • Support URL link syntax.
  • Support image syntax.
  • Customizable.

https://www.kbasm.com -- My personal website

https://github.com/wqking/eventpp  eventpp -- C++ library for event dispatcher and callback list

https://github.com/cpgf/cpgf  cpgf library -- free C++ open source library for reflection, serialization, script binding, callbacks, and meta data for OpenGL Box2D, SFML and Irrlicht.

This topic is closed to new replies.

Advertisement