RST reader: handle sourcecode directive as synonynm for code.

Closes #5204.
This commit is contained in:
John MacFarlane 2019-01-08 11:11:48 -08:00
parent 599327bee1
commit 230e07ddfc

View file

@ -737,7 +737,7 @@ directive' = do
case trim top of
"" -> stateRstDefaultRole def
role -> role })
x | x == "code" || x == "code-block" ->
x | x == "code" || x == "code-block" || x == "sourcecode" ->
codeblock name classes
(lookup "number-lines" fields) (trim top) body
"aafig" -> do