| Age | Commit message (Collapse) | Author |
|
Using struct limit the value to only string, while some attributes
can be an integer value, for example "leveloffset".
|
|
The idea is to provide consistent naming for metadata and attribute.
The AsciiDoctor documentation mostly name them as document attribute.
|
|
This is to make the struct is clear that it represent the document
attribute.
|
|
|
|
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/
|
|
Use raw string literal whenever possible.
|
|
Previously, we always set the ID prefix and separator default to "_" if
its not set, this cause all of the ID is prefixed with "_".
This changes use strict rules when generating ID following the Mozilla
specification [1] and latest AsciiDoc Language [2].
The idprefix must be ASCII string.
It must start with "_", "-", or ASCII letters, otherwise the "_" will
be added to the beginning.
If one of the character is not valid, it will replaced with "_".
The `idseparator` can be empty or single ASCII character ('_' or '-',
ASCII letter, or digit).
It is used to replace invalid characters in the REF_ID.
[1] https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id
[2] https://docs.asciidoctor.org/asciidoc/latest/sections/id-prefix-and-separator/
|
|
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.
|
|
Signed-off-by: Shulhan <ms@kilabit.info>
|
|
The latest update on share v0.25.1 remove the last boolean parameter
on lib/test.Assert().
|
|
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.
|
|
|
|
The cross reference text can be customized using attribute name "reftext"
with value is the alternative text to be displayed on anchor.
|
|
|
|
|
|
This is the first commit that can parser whole document line by line
and provide convertion to HTML.
Things that does not working: inline style, table, passthrough,
dynamic attributes, include.
|