OscarGodson / EpicEditor

EpicEditor is an embeddable JavaScript Markdown editor with split fullscreen editing, live previewing, automatic draft saving, offline support, and more. For developers, it offers a robust API, can be easily themed, and allows you to swap out the bundled Markdown parser with anything you throw at it.
http://epiceditor.com
MIT License
4.25k stars 338 forks source link

How to change rendering for specific elements #368

Closed ckosmowski closed 8 years ago

ckosmowski commented 9 years ago

I'd like to augment the markdown with some special type of links in my application (linking between objects). I saw that with "Marked" this should be possible by overwriting methods of the renderer. But how can i do this with epic editor? There is no marked.Renderer object to use.

mikekoetter commented 9 years ago

agree - I had assumed that since marked.js was the default parser, I would be able replace the default marked renderer

OscarGodson commented 9 years ago

There's a section in the README about replacing the parser: https://github.com/OscarGodson/EpicEditor#custom-parsers

mikekoetter commented 9 years ago

Replacing the parser doesn't replace the renderer

massar commented 8 years ago

The parser is both a Markdown parser and causes things to be rendered. Hence, when you change the parser, you change what the output is that is generated.