Skip to content

Commit

Permalink
DokuWiki reader: enable smart extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Sep 22, 2024
1 parent 8d35b79 commit e452f0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Text/Pandoc/Extensions.hs
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ getDefaultExtensions "opml" = pandocExtensions -- affects notes
getDefaultExtensions "markua" = extensionsFromList
[]
getDefaultExtensions "typst" = extensionsFromList [Ext_citations]
getDefaultExtensions "dokuwiki" = extensionsFromList [Ext_smart]
getDefaultExtensions _ = extensionsFromList
[Ext_auto_identifiers]

Expand Down Expand Up @@ -644,7 +645,8 @@ getAllExtensions f = universalExtensions <> getAll f
getAll "dokuwiki" = autoIdExtensions <>
extensionsFromList
[ Ext_tex_math_dollars
, Ext_raw_html ]
, Ext_raw_html
, Ext_smart ]
getAll "tikiwiki" = autoIdExtensions
getAll "rst" = autoIdExtensions <>
extensionsFromList
Expand Down
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Readers/DokuWiki.hs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ inline'' = br
<|> autoEmail
<|> notoc
<|> nocache
<|> dash
<|> smartPunctuation inline
<|> str
<|> symbol
<?> "inline"
Expand Down

0 comments on commit e452f0c

Please sign in to comment.