GitbookIO / kramed

A markdown (kramdown compatible) parser and compiler. Built for speed. (Fork of marked)
MIT License
223 stars 47 forks source link

How to make `markdown="1"` working? #16

Closed varya closed 9 years ago

varya commented 9 years ago

What should be the option to make

<div markdown="1">

**test**

</div>

working?

AaronO commented 9 years ago

@varya You would use jQuery to select those elements, something like this I guess :

$("[markdown='1']").each(function(el) {
    var $el = $(el);
    $el.html(kramed($el.text()));
});