dojox.markup
Client-side markup parser
Examples:
Simple textarea:
# Some big heading, atx style H1 heading, Settext style ========================= H2 heading, Settext style ------------------------------------- Some simple text Some simple text Some simple text ## H2 heading, atx style ### H3 heading, atx style with closing hashes ### Text indented with spaces Text indented with spaces Text indented with one tab Text indented with one tab Text indented with two tabs Text indented with two tabs Text indented with two tabs The next two lines consist only of tabs and spaces
Some inner html code here
Lets put some horizontal rules here --------- --- * * * ********** **** ___________ this is not a horizontal rule: ** ## Lists ### Bullets 1 * Red * Green * Blue ### Bullets 2 + Red + Green + Blue ### Bullets 3 - Red - Green - Blue ### Ordered 1 1. Bird 2. McHale 3. Parish ### Ordered 2 1. Bird 1. McHale 1. Parish ### Ordered 3 3. Bird 1. McHale 8. Parish ### Some * Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. * Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing. ### Some * Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. * Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
Parse results (html output):