strapdown icon indicating copy to clipboard operation
strapdown copied to clipboard

Include external markdown files

Open bluenote10 opened this issue 11 years ago • 9 comments

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.

bluenote10 avatar May 03 '13 07:05 bluenote10

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

kenetik avatar Jun 07 '13 20:06 kenetik

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

colthreepv avatar Jul 29 '13 08:07 colthreepv

+1

rhythmus avatar Nov 07 '13 15:11 rhythmus

+1

sevenate avatar Apr 23 '14 08:04 sevenate

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

somada141 avatar Apr 23 '14 08:04 somada141

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

bendavis78 avatar May 26 '14 21:05 bendavis78

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>

onesail avatar Jun 03 '16 23:06 onesail

+1. Is the project dead.. ?

briceambrosiak avatar Aug 30 '16 15:08 briceambrosiak

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

obedm503 avatar Aug 30 '16 22:08 obedm503