Currrently micromark-extension-directive 1.1.2 doesn't seem to support nested directives. Perhaps this is unsupported or is not in the standard for some sensible reason.
We should expect the i textDirective to include all of the text between the two outer square brackets and have a nested b textDirective.
Here is the code that produced this output:
var unified = require('unified')
var directive = require('remark-directive')
var parse = require('remark-parse')
var x = unified()
.use(parse)
.use(directive)
.parse("Hello :i[Here is a :b[inner] thing].")
console.log(JSON.stringify(x.children[0]))
Nested directives
Currrently
micromark-extension-directive 1.1.2
doesn't seem to support nested directives. Perhaps this is unsupported or is not in the standard for some sensible reason.Is sent to the following mdast
(ignoring position data).
We should expect the
i
textDirective to include all of the text between the two outer square brackets and have a nestedb
textDirective.Here is the code that produced this output:
versions: