Giter Site home page Giter Site logo

solocoder-tech / markdown2_add_table_of_content Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wzcprince/markdown2_add_table_of_content

0.0 0.0 0.0 33 KB

add toc/table of content to html file exported by markdownpad2

JavaScript 31.48% HTML 68.52%

markdown2_add_table_of_content's Introduction

about author

I copied the code from http://www.cnblogs.com/JEckDe/p/5335272.html by JEck_De and modified a little by myself.

  • change the anchor's id to the headline's text rather than the variable sequence number
  • more international , haha!

usage

add toc/table of content to html file exported by MarkdownPad2

steps:

  • just copy the content of the file addTOC.js into MarkdownPad2:Tools->Options->Advanced->HTML Head Editor
  • save and close the HTML Head Editor
  • create your own test.md just like test.md
  • Ctrl + Shift + 1 or File->Export->Export HTML and will get ./test.html
  • you can save the test.html locally and have a try

effect picture

effect.png

2018-01-15-update

**move the addTOC.js to https://github.com/wzcprince/efficiency/blob/master/MarkdownPad2-configs/export_html_add_toc.js **

markdown2_add_table_of_content's People

Contributors

wzcprince avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.