Hacker News new | ask | show | jobs
by dxxvi 1406 days ago
I'm doing something similar for my personal notes but I combine .md and .html into 1 file. My .html file looks like this:

    <html>
    <body>
      <div class="accordion">
        <div class="accordion-item" title="...">
          text with markdown syntax goes here
        </div>
      </div>
      <script>
        // use showdown.js to convert the innerHTMLin .md syntax to html code
        // use bootstrap to make the accordion-item collapsible/expandable
        // use js to make a floating TOC
      </script>
    </body>
    </html>
If anybody uses both showdown.js and this casual-markdown.js, could you give some comments?