strapdown
strapdown copied to clipboard
Include external markdown files
A nice feature would be the possibility to keep the actual markdown text in a separate file instead of embedding it in a xmp tag. This would allow to have a markdown file for editing (and correct syntax highlighting in the editor) and a html file for viewing. It probably can already be done via XMLHTTPRequest but a prepared user friendly one-liner to include a client side markdown file would be great.
I am also VERY interested in this capability as I am constantly editing my .md.
I've checked the forks and @didiercrunch implemented this feature already.
Let's hope he compiles a Pull Request. Ref: https://github.com/didiercrunch/strapdown/commits/gh-pages
+1
+1
I just use Python and Jinja2 on a Strapdown template to get the above behavior. Its also cool to add mathjax support as shown in https://gist.github.com/memeplex/6309540
It's pretty easy to do using an XHR call: https://gist.github.com/bendavis78/236fb890ba23b10e66fc
Here's my version to support the usage of a src attribute: https://gist.github.com/onesail/5674982a379cef273bb3275344e3c20b
example:
<xmp src="homepage.md" theme="cerulean" style="display:none;"></xmp>
<script src="load-xmp-src.js"></script>
<script src="http://strapdownjs.com/v/0.2/strapdown.js"></script>
+1. Is the project dead.. ?
check bootmark
it's originally a fork of strapdown but a lot more extended:
- external files
- all bootswatch themes (bootstrap 3)
- optional automatic table of content
- showdown parser (which is alot more capable than marked)
- it's still a work in progress and im open to suggestions
demo here in the demo you can:
- try a different theme by adding to the url:
-
?theme=<any bootswatch theme>
- bootswatch
- default theme for the demo is yeti
-
- try with a different markdown file by adding to the url:
-
?fetch=<any public markdown file>
- default file is the bootstrap readme on github
-
- try without a table of contents by adding to the url:
-
?toc=false
-