aboutsummaryrefslogtreecommitdiff
path: root/parser_inline.go
AgeCommit message (Collapse)Author
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).
2020-12-10all: refactoring document parser to split content by linesShulhan
Previously, we read the raw content line by line. Unfortunately, this technique did not work for "include" directive, where the included file's content will be embedded to current content. This changes split the initial raw content by lines to make it allow injecting another lines when including directives exist.
2020-12-03all: unified the document node attributesShulhan
2020-11-16all: support forcing line break by ending the line with " +\n"Shulhan
2020-11-15all: change the classes field from slice to mapShulhan
This is to prevent duplicate class values on document or node.
2020-11-08parser_inline: check for space before parsing link or macroShulhan
This is to fix the "http: <text>" to be considered a link.
2020-11-08all: apply substitution to links, block image, video, and audioShulhan
Use cases, * link:{attr-ref}[Alt text] * video::{url}[...] * image:{a}[X, link={y}]
2020-11-04all: parse inline format on list description item labelShulhan
2020-11-04all: check for duplicate IDsShulhan
If the next ID is duplicate, the asciidoc parser will generate new one by adding suffix "_x" (where x is the counter) to the duplicate ID.
2020-11-04parser_inline: truncate inline link only if its end with '.', ',' or ';'Shulhan
2020-11-04all: support inline image with link optionShulhan
2020-11-03all: implement characters replacement on inline parserShulhan
2020-11-03all: implement parser for attribute referenceShulhan
The parser will replace attribute reference with its value if its exist, otherwise it will keep it as is.
2020-11-03all: implement parser for customizing the cross reference textShulhan
The cross reference text can be customized using attribute name "reftext" with value is the alternative text to be displayed on anchor.
2020-11-01all: implement parser for inline and natural cross referenceShulhan
2020-10-31all: implement parser for block anchor and inline anchorShulhan
2020-10-30all: store the src and href on adocNode Attrs instead of valueShulhan
The field value should be only used by lineKindAttribute.
2020-10-29all: implement parser for inline imageShulhan
2020-10-29all: implement parser for inline URL and linkShulhan
2020-10-28all: implement parse for triple passthroughShulhan
2020-10-28all: handle escaped character when parsing inline formattingShulhan
If the inline formatting syntax begin with "\", it will be ignored and will be considered as single character.
2020-10-27all: implement parser for subscript and superscriptShulhan
Subscript is inline formatting that wrap string without space with "~". Superscript is inline formatting that wrap string without space with "^".
2020-10-27all: implement parser for single quote curveShulhan
Single quote curve is the one that start with ('`) and end with (`'). If (`') does not have a start format it will turn into apostrophe.
2020-10-26all: implement parser for double quote curve ("`...`")Shulhan
2020-10-26all: implement parser for inline formatting bold, italic, and monoShulhan
Finally, I can get this works with all the quirks of how it should be rendered. Its not perfect, at least it started working. It take me couple of weeks to figuring it out how it should be worked.