diff options
| author | Shulhan <ms@kilabit.info> | 2022-11-21 01:20:03 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-11-27 21:14:18 +0700 |
| commit | 5c7bfc04dc3d2cd60e84c80229804fdcd615709e (patch) | |
| tree | 63b9749699090421b55355d0f3e1f5c1b99875a1 /element.go | |
| parent | 3d1caba74842d7dd0800cd0351ddb4c47364a541 (diff) | |
| download | asciidoctor-go-5c7bfc04dc3d2cd60e84c80229804fdcd615709e.tar.xz | |
all: implement inline macro for passthrough ("pass:")
The inline passthrough "pass:" can be used to control the substitutions
applied to a run of text.
Ref: https://docs.asciidoctor.org/asciidoc/latest/pass/pass-macro/
Diffstat (limited to 'element.go')
| -rw-r--r-- | element.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -45,6 +45,9 @@ type element struct { rawLabel bytes.Buffer level int // The number of dot for ordered list, or '*' for unordered list. kind int + + // List of substitutions to be applied on raw. + applySubs int } func (el *element) getListOrderedClass() string { @@ -870,6 +873,9 @@ func (el *element) toHTML(doc *Document, w io.Writer) { case elKindInlineImage: htmlWriteInlineImage(el, w) + case elKindInlinePass: + htmlWriteInlinePass(doc, el, w) + case elKindListDescription: htmlWriteListDescription(el, w) case elKindListOrdered: |
