LaTeX reader: support tex \tt command.

Closes #5654.
This commit is contained in:
John MacFarlane 2019-07-22 15:28:15 -07:00
parent 63c65c89da
commit d9960244d8
3 changed files with 8 additions and 1 deletions

View file

@ -924,6 +924,7 @@ inlineCommands = M.union inlineLanguageCommands $ M.fromList
, ("it", extractSpaces emph <$> inlines)
, ("sl", extractSpaces emph <$> inlines)
, ("bf", extractSpaces strong <$> inlines)
, ("tt", code . stringify . toList <$> inlines)
, ("rm", inlines)
, ("itshape", extractSpaces emph <$> inlines)
, ("slshape", extractSpaces emph <$> inlines)

View file

@ -6,7 +6,7 @@
while (n > 0) {
\end{verbatim}
^D
[Para [Span ("",[],[]) [Str "<-"]]
[Para [Span ("",[],[]) [Code ("",[],[]) "<-"]]]
,CodeBlock ("",[],[]) " while (n > 0) {"]
```

6
test/command/5654.md Normal file
View file

@ -0,0 +1,6 @@
```
% pandoc -f latex -t markdown
This is {\tt monospaced too} done.
^D
This is `monospaced too` done.
```