git.iko.soy/typeable/pandoc
on master help sign in
MediaWiki writer: use `<code>` not `<tt>` for Code.
commit91e8d80eee405e4bbb40bf247724b453187619f9 authorJohn MacFarlane <fiddlosopher@gmail.com> dateFri 4 Jan 2013, 23:16 (14 years ago) parent0f9e2c2
2 files changed+8−8
src/Text/Pandoc/Writers/MediaWiki.hs+1−1 tests/writer.mediawiki+7−7
src/Text/Pandoc/Writers/MediaWiki.hs+1−1
@@ -360,7 +360,7 @@ inlineToMediaWiki opts (Quoted DoubleQuote lst) = do
360360inlineToMediaWiki opts (Cite _ lst) = inlineListToMediaWiki opts lst
361361
362362inlineToMediaWiki _ (Code _ str) =
363− return $ "<tt>" ++ (escapeString str) ++ "</tt>"
363+ return $ "<code>" ++ (escapeString str) ++ "</code>"
364364
365365inlineToMediaWiki _ (Str str) = return $ escapeString str
366366
tests/writer.mediawiki+7−7
@@ -432,7 +432,7 @@ So is '''''this''''' word.
432432
433433So is '''''this''''' word.
434434
435−This is code: <tt>&gt;</tt>, <tt>$</tt>, <tt>\</tt>, <tt>\$</tt>, <tt>&lt;html&gt;</tt>.
435+This is code: <code>&gt;</code>, <code>$</code>, <code>\</code>, <code>\$</code>, <code>&lt;html&gt;</code>.
436436
437437<s>This is ''strikeout''.</s>
438438
@@ -455,7 +455,7 @@ These should not be superscripts or subscripts, because of the unescaped spaces:
455455
456456‘He said, “I want to go.”’ Were you alive in the 70’s?
457457
458−Here is some quoted ‘<tt>code</tt>’ and a “[http://example.com/?foo=1&bar=2 quoted link]”.
458+Here is some quoted ‘<code>code</code>’ and a “[http://example.com/?foo=1&bar=2 quoted link]”.
459459
460460Some dashes: one—two — three—four — five.
461461
@@ -479,10 +479,10 @@ Ellipses…and…and….
479479
480480These shouldn’t be math:
481481
482−* To get the famous equation, write <tt>$e = mc^2$</tt>.
482+* To get the famous equation, write <code>$e = mc^2$</code>.
483483* $22,000 is a ''lot'' of money. So is $34,000. (It worked if “lot” is emphasized.)
484484* Shoes ($20) and socks ($5).
485−* Escaped <tt>$</tt>: $73 ''this should be emphasized'' 23$.
485+* Escaped <code>$</code>: $73 ''this should be emphasized'' 23$.
486486
487487Here’s a LaTeX table:
488488
@@ -610,11 +610,11 @@ With an ampersand: http://example.com/?foo=1&bar=2
610610* http://example.com/
611611* It should.
612612
613−An e-mail address: [mailto:nobody@nowhere.net <tt>nobody@nowhere.net</tt>]
613+An e-mail address: [mailto:nobody@nowhere.net <code>nobody@nowhere.net</code>]
614614
615615<blockquote>Blockquoted: http://example.com/
616616</blockquote>
617−Auto-links should not occur here: <tt>&lt;http://example.com/&gt;</tt>
617+Auto-links should not occur here: <code>&lt;http://example.com/&gt;</code>
618618
619619<pre>or here: &lt;http://example.com/&gt;</pre>
620620
@@ -640,7 +640,7 @@ Subsequent blocks are indented to show that they belong to the footnote (as with
640640
641641<pre> { &lt;code&gt; }</pre>
642642If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.
643−</ref> This should ''not'' be a footnote reference, because it contains a space.[^my note] Here is an inline note.<ref>This is ''easier'' to type. Inline notes may contain [http://google.com links] and <tt>]</tt> verbatim characters, as well as [bracketed text].
643+</ref> This should ''not'' be a footnote reference, because it contains a space.[^my note] Here is an inline note.<ref>This is ''easier'' to type. Inline notes may contain [http://google.com links] and <code>]</code> verbatim characters, as well as [bracketed text].
644644</ref>
645645
646646<blockquote>Notes can go in quotes.<ref>In quote.