nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/markdown: promote `BlockFence::meta` to `BlockCode` to simplify clients
[nit.git]
/
lib
/
markdown
/
markdown.nit
diff --git
a/lib/markdown/markdown.nit
b/lib/markdown/markdown.nit
index
9124ad7
..
613e1a4
100644
(file)
--- a/
lib/markdown/markdown.nit
+++ b/
lib/markdown/markdown.nit
@@
-1233,6
+1233,9
@@
end
class BlockCode
super Block
class BlockCode
super Block
+ # Any string found after fence token.
+ var meta: nullable Text
+
# Number of char to skip at the beginning of the line.
#
# Block code lines start at 4 spaces.
# Number of char to skip at the beginning of the line.
#
# Block code lines start at 4 spaces.
@@
-1259,9
+1262,6
@@
end
class BlockFence
super BlockCode
class BlockFence
super BlockCode
- # Any string found after fence token.
- var meta: nullable Text
-
# Fence code lines start at 0 spaces.
redef var line_start = 0
end
# Fence code lines start at 0 spaces.
redef var line_start = 0
end