client-side DOM > markdown (MIT Licensed)
A project similar to Markdownify but executed on the client. The ultimate goal is integration with existing WYSIWYG html editors (eg: TinyMCE, CKeditor, Loki, CLeditor) to produce Markdown output. There are currently no WYSIWYG editors for markdown, only WYSIWYM, which still require knowledge of markdown syntax and its many quirky flavors.
js
// optional options w/defaults
var options = {
link_list: false, // render links as references, create link list as appendix
h1_setext: true, // underline h1 headers
h2_setext: true, // underline h2 headers
h_atx_suf: false, // header suffixes (###)
gfm_code: false, // gfm code blocks (
)
li_bullet: "", // list item bullet style
hr_char: "-", // hr style
indnt_str: " ", // indentation string
bold_char: "", // char used for strong
emph_char: "_", // char used for em
gfm_tbls: true, // markdown-extra tables
tbl_edges: false, // show side edges on tables
hash_lnks: false, // anchors w/hash hrefs as links
};
var reMarker = new reMarked(options);
var markdown = reMarker.render(document.body); ```