aboutsummaryrefslogtreecommitdiff
path: root/inline_parser_test.go
AgeCommit message (Collapse)Author
2026-02-18all: fix parsing inline format with escaped characterShulhan
If the text inside the inline format contains escaped character, the parsing failed to find the closed character which cause the format is not rendered as expected.
2024-08-13all: refactoring DocumentAttribute into structShulhan
Using struct limit the value to only string, while some attributes can be an integer value, for example "leveloffset".
2024-03-05all: replace module "share" with "pakakeh.go"Shulhan
2022-11-27all: implement inline macro for passthrough ("pass:")Shulhan
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/
2022-10-20all: implement macro "footnote:"Shulhan
Macro footnote grammar, ---- "footnote:" [ REF_ID ] "[" STRING "]" ---- In asciidoctor, footnote can be placed anywhere, even after WORD without space in between. The REF_ID, define the unique ID for footnote and can be used to reference the previous footnote. The first footnote with REF_ID, should have the STRING defined. The next footnote with the same REF_ID, should not have the STRING defined; if its defined, the STRING is ignored.
2022-08-06all: rewrite unit tests for inlineParser using test.DataShulhan
Using string literal for testing string input that may contains backtick or double quote make the test code become unreadable and hard to modify. The test.Data help this by moving the input and expected output into a file that can we write as is.
2022-08-05all: cleaning up codesShulhan
Use raw string literal whenever possible.
2022-07-16all: reformat all Go filesShulhan
Replace any usage of ":=" with "var" declaration with type. The ideas is to make the code reader know what is the expected return value of function/method.
2022-02-21all: relicense the asciidoctor-go under GPL 3.0 or laterShulhan
Signed-off-by: Shulhan <ms@kilabit.info>
2021-04-06go.mod: set minimum Go version to 1.16 and update module share to v0.25.1Shulhan
The latest update on share v0.25.1 remove the last boolean parameter on lib/test.Assert().
2020-12-24all: remove parameter isForToC on method element.toHTMLShulhan
This is to minimize call stack size since the method will be called recursively.
2020-12-20all: use consistent names for parserShulhan
Instead of parserX (or parser_x.go) we move the X as prefix so it will become XParser (or x_parser.go).