- Write markdown syntax.
- Have guard/guard-shell catch the changes and run markdown.php against the .md file and create a corresponding .html file.
-
jquery TOC plugin
-
clone markdown-notes project from github into your directory.
git clone git@github.com:markhaskamp/markdown-notes.git .
-
from your directory
2.1. set up your ruby gems
gem install bundle rvm gemset create markdown_notes bundle install
-
Start Guard
bundle exec guard
-
Create/edit files in the data/markdown/ directory
2.1 For Guard to pick up your changes, the Markdown files need to have the .md extension.
-
Guard will detect the changes and create a corresponding file in the data/html_gen/ directory.
-
To create collapsible regions.
In the markdown file, surround the desired collapsible region with:
<div markdown="1" class="collapse" title="your text here" collapse="true">
...
</div>
collapse="true" is optional