2008-01-08 07:01:35 +01:00
We must make sure that `'` is always written as `'` .
*** Parameters: ** *
{} # params
*** Markdown input: ** *
`<p>here's an apostrophe & a quote "</p>`
< p > here's an apostrophe & a quote "< / p >
{:}
< p > here's an apostrophe & a quote "< / p >
{:lang=xml}
< p > here's an apostrophe & a quote "< / p >
{:html_use_syntax=true lang=not_supported}
< p > here's an apostrophe & a quote "< / p >
{:html_use_syntax=true lang=xml}
*** Output of inspect ** *
md_el(:document,[
md_par([md_code("< p > here's an apostrophe & a quote \"</ p > ")]),
md_el(:code,[],{:raw_code=>"< p > here's an apostrophe & a quote \"</ p > "},[]),
md_el(:code,[],{:raw_code=>"< p > here's an apostrophe & a quote \"</ p > "},[["lang", "xml"]]),
md_el(:code,[],{:raw_code=>"< p > here's an apostrophe & a quote \"</ p > "},[["html_use_syntax", "true"], ["lang", "not_supported"]]),
md_el(:code,[],{:raw_code=>"< p > here's an apostrophe & a quote \"</ p > "},[["html_use_syntax", "true"], ["lang", "xml"]])
],{},[])
*** Output of to_html ** *
2011-08-12 03:36:44 +02:00
< p > < code > < p> here's an apostrophe & a quote "< /p> < / code > < / p >
2008-01-08 07:01:35 +01:00
2011-08-12 03:36:44 +02:00
< pre > < code > < p> here's an apostrophe & a quote "< /p> < / code > < / pre >
2008-01-08 07:01:35 +01:00
2011-08-13 10:59:40 +02:00
< pre class = "xml" > < code lang = "xml" > < span class = "punct" > < < / span > < span class = "tag" > p< / span > < span class = "punct" > > < / span > here's an apostrophe & a quote "< span class = "punct" > < /< / span > < span class = "tag" > p< / span > < span class = "punct" > > < / span > < / code > < / pre >
2008-01-08 07:01:35 +01:00
2011-08-12 03:36:44 +02:00
< pre class = "not_supported" > < code lang = "not_supported" > < p> here's an apostrophe & a quote "< /p> < / code > < / pre >
2008-01-08 07:01:35 +01:00
2011-08-12 03:36:44 +02:00
< pre class = "xml" > < code lang = "xml" > < span class = "punct" > < < / span > < span class = "tag" > p< / span > < span class = "punct" > > < / span > here's an apostrophe & a quote "< span class = "punct" > < /< / span > < span class = "tag" > p< / span > < span class = "punct" > > < / span > < / code > < / pre >
2008-01-08 07:01:35 +01:00
*** Output of to_latex ** *
{\colorbox[rgb]{1.00,0.93,1.00}{\tt \char60p\char62here\char39s~an~apostrophe~\char38~a~quote~\char34\char60\char47p\char62}}
\begin{verbatim}< p > here's an apostrophe & a quote "</ p > \end{verbatim}
\begin{verbatim}< p > here's an apostrophe & a quote "</ p > \end{verbatim}
\begin{verbatim}< p > here's an apostrophe & a quote "</ p > \end{verbatim}
\begin{verbatim}< p > here's an apostrophe & a quote "</ p > \end{verbatim}
*** Output of to_md ** *
*** Output of to_s ** *