nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad93cd0
)
lib/markdown: fix `text` for nested markdown blocks
author
Alexandre Terrasa
<alexandre@moz-code.org>
Thu, 12 Oct 2017 00:46:11 +0000
(20:46 -0400)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Thu, 12 Oct 2017 00:46:11 +0000
(20:46 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
lib/markdown/markdown.nit
patch
|
blob
|
history
diff --git
a/lib/markdown/markdown.nit
b/lib/markdown/markdown.nit
index
4ae99fb
..
ecf6064
100644
(file)
--- a/
lib/markdown/markdown.nit
+++ b/
lib/markdown/markdown.nit
@@
-1140,6
+1140,12
@@
class MDBlock
text.append "\n"
line = line.next
end
+ var block = first_block
+ while block != null do
+ text.append block.text
+ text.append "\n"
+ block = block.next
+ end
return text.write_to_string
end
end