-
Notifications
You must be signed in to change notification settings - Fork 0
lhilton/Marker
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
###ABOUT Marker is an EE 2.x plugin that converts between Markdown and HTML. Both directions are supported, Markdown -> HTML as well as HTML -> Markdown. Markdown is the creation of John Gruber, information is here: - http://daringfireball.net/projects/markdown/) HTML is the creation of Tim Berners-Lee, documentation can be found with the W3C - http://www.w3.org/ This plugin is an encapsulation of two legendary PHP Markdown libraries. For Markdown -> HTML work I am using PHP Markdown: - http://michelf.com/projects/php-markdown/ For the HTLM -> Markdown work I am using Markdownify: - http://milianw.de/projects/markdownify/ In both cases, Extra capabilities are in play: - http://michelf.com/projects/php-markdown/extra/ ###USAGE ___ There are two ways to use Marker. The first is converting from Markdown to HTML: {exp:marker:tohtml} ## This is markdown You can also supply a **channel field tag** for content. {/exp:marker:tohtml} This will return some nicely formatted HTML and make the world a more joyous place to live. You can also convert from HTML to Markdown: {exp:marker:tomarkdown} <h2>This is html</h2> <p>You can also supply a <strong>channel field tag</strong> for content.</p> {/exp:marker:tomarkdown} This can be a bit more dangerous as complex or poor HTML can loose data in the translation. For example tags with inline style can find themselves destyled once converted to Markdown. To be fair, that is really the philosophy of Markdown. __Just be aware that this IS considered a lossy conversion__.
About
Marker is an EE 2.x plugin that converts between Markdown and HTML.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published