arturadib / strapdown

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

Add ability to run markdown on multiple separate elements. #19

Closed gitgrimbo closed 11 years ago

gitgrimbo commented 11 years ago

Hi,

Firstly, thanks for creating this - I've been finding it really useful.

I had a requirement to have two distinct markdown blocks on the same page, so I made these changes to iterate over all the possible elements to apply markdown to. Very little has changed apart from wrapping a loop around some of the original code.

I've included a demo page to show what I mean. This requires a 0.3 bundle to be generated.

I thought I'd send a pull request in case you're interested in including the changes.

Cheers.

arturadib commented 11 years ago

Hi there, thanks for the PR! I think this is an interesting niche feature for folks who need to mix-in HTML and Markdown, but I think it's a bit out of scope for Strapdown - I wanted it to be a simple Markdown renderer.

Thanks again! Keep good stuff coming.