Skip to content

Commit

Permalink
RST reader: handle sourcecode directive as synonynm for code.
Browse files Browse the repository at this point in the history
Closes #5204.
  • Loading branch information
jgm committed Jan 8, 2019
1 parent 599327b commit 230e07d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Readers/RST.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 230e07d

Please sign in to comment.