Class: PEGMarkdown
- Inherits:
-
Object
- Object
- PEGMarkdown
- Defined in:
- lib/peg_markdown.rb,
ext/markdown.c
Overview
Front-end to jgm's peg-markdown implementation of Markdown, the humane text markup language.
A simple processor:
>>> puts Markdown.new("Hello, World.").to_html
<p>Hello, World.</p>
With other stuff:
>>> puts Markdown.new("_Hello -- World!_", :smart, :filter_html).to_html
<p><em>Hello World!</em></p>
Instance Attribute Summary collapse
-
#filter_html ⇒ Object
Do not output any raw HTML included in the source text.
-
#filter_styles ⇒ Object
Do not output