mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 01:36:45 +00:00
committed by
John MacFarlane
parent
2f979e0684
commit
a0da1e2723
@@ -479,7 +479,11 @@ inlineToDokuWiki _ il@(RawInline f str)
|
||||
| f == Format "html" = return $ "<html>" ++ str ++ "</html>"
|
||||
| otherwise = "" <$ report (InlineNotRendered il)
|
||||
|
||||
inlineToDokuWiki _ LineBreak = return "\\\\\n"
|
||||
inlineToDokuWiki _ LineBreak = do
|
||||
backSlash <- stBackSlashLB <$> ask
|
||||
return $ if backSlash
|
||||
then "\n"
|
||||
else "\\\\\n"
|
||||
|
||||
inlineToDokuWiki opts SoftBreak =
|
||||
case writerWrapText opts of
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
Sample grid table.
|
||||
^Fruit ^Price^Advantages ^
|
||||
|Bananas|$1.34|built-in wrapper\\ \\ potassium|
|
||||
|Oranges|$2.10|* cures scurvy\\ * tasty |
|
||||
^Fruit ^Price^Advantages ^
|
||||
|Bananas|$1.34|built-in wrapper\\ \\ potassium |
|
||||
|Oranges|$2.10|* cures scurvy\\ * tasty |
|
||||
|Apples |$1.10|Some text\\ \\ after two linebreaks|
|
||||
|
||||
@@ -10,4 +10,9 @@
|
||||
,[Para [Str "$2.10"]]
|
||||
,[BulletList
|
||||
[[Plain [Str "cures",Space,Str "scurvy"]]
|
||||
,[Plain [Str "tasty"]]]]]]]
|
||||
,[Plain [Str "tasty"]]]]]
|
||||
,[[Para [Str "Apples"]]
|
||||
,[Para [Str "$1.10"]]
|
||||
,[Para [Str "Some",Space,Str "text",LineBreak,LineBreak,Str "after",Space,Str "two",Space,Str "linebreaks"]
|
||||
]]
|
||||
]]
|
||||
|
||||
Reference in New Issue
Block a user