feat: use go tool
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* @import {Extension} from 'micromark-util-types'
|
||||
*/
|
||||
|
||||
import {codes} from 'micromark-util-symbol'
|
||||
import {directiveContainer} from './directive-container.js'
|
||||
import {directiveLeaf} from './directive-leaf.js'
|
||||
import {directiveText} from './directive-text.js'
|
||||
|
||||
/**
|
||||
* Create an extension for `micromark` to enable directive syntax.
|
||||
*
|
||||
* @returns {Extension}
|
||||
* Extension for `micromark` that can be passed in `extensions`, to
|
||||
* enable directive syntax.
|
||||
*/
|
||||
export function directive() {
|
||||
return {
|
||||
text: {[codes.colon]: directiveText},
|
||||
flow: {[codes.colon]: [directiveContainer, directiveLeaf]}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user