lib/markdown: promote `BlockFence::meta` to `BlockCode` to simplify clients
[nit.git] / lib / markdown / markdown.nit
index 9124ad7..613e1a4 100644 (file)
@@ -1233,6 +1233,9 @@ end
 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.
@@ -1259,9 +1262,6 @@ end
 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