arturadib / strapdown

Instant and elegant Markdown documents in the browser
http://strapdownjs.com
MIT License
2.48k stars 410 forks source link

Include external markdown files #17

Open bluenote10 opened 11 years ago

bluenote10 commented 11 years ago

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.

kenetik commented 11 years ago

I am also VERY interested in this capability as I am constantly editing my .md.

colthreepv commented 10 years ago

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

rhythmus commented 10 years ago

+1

sevenate commented 10 years ago

+1

somada141 commented 10 years ago

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

bendavis78 commented 10 years ago

It's pretty easy to do using an XHR call: https://gist.github.com/bendavis78/236fb890ba23b10e66fc

onesail commented 8 years ago

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>
briceambrosiak commented 7 years ago

+1. Is the project dead.. ?

obedm503 commented 7 years ago

check bootmark

it's originally a fork of strapdown but a lot more extended:

demo here in the demo you can: