arturadib / strapdown

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

Does not work on blogger #74

Open AllanXu49 opened 7 years ago

AllanXu49 commented 7 years ago

This is such promising tool for blogger. I tested the library on blogger and unfortunately it is not compatible. When I add blow line to the bottom of the tag, the whole page is wiped out.

Any chance you can help to make strapdown work on blogger?

obedm503 commented 7 years ago

I don't really know how to solve this on strapdown, but you could also use bootmark. It fulfills the same need as strapdown, just in a better way.

<script src="https://obedm503.github.io/bootmark/dist/bootmark.bundle.min.js"></script>
<bootmark 
  template="{
    text: '${bootmark}'
  }"
>
<!-- 
  template="{ text: '${bootmark}' }" 
  just means that bootmark will not wrap
  the parsed markdown in any more html
-->
## title

![image](https://obedm503.github.io/bootmark/bootmark-favicon.png =120x120)

> blockqoute

### another title

paragraph

![another image](https://obedm503.github.io/bootmark/bootmark-logo.png =320x320)

## list
- item 1
- item 2
    - sub item 1
    - sub item 2
    - sub item 3
- item 3
</bootmark>

I tested this on blogger and it works just fine.

for more info on bootmark see the webpage here, the docs here, and some examples here