| Age | Commit message (Collapse) | Author |
|
Instead of parserX (or parser_x.go) we move the X as prefix so it will
become XParser (or x_parser.go).
|
|
Remove unused constants and functions, replace Write() with fmt.Fprint(),
and other fixes.
|
|
The bytes.Buffer documentation said the error returned from Write,
WriteByte, WriteRune, and WriteString is always nil. So, we did not
need to check the returned error.
The only possible error is panic when writing with WriteString which
will throw ErrTooLarge.
|
|
Instead of using text/template, we use constants of strings.
This is give us more simple template and allow us to minimize duplicate
code.
|
|
This is to fix the "http: <text>" to be considered a link.
|
|
Use case: "A `/**/` *B*", should generate the following HTML
A <code>/<strong></strong>/</code> <strong>B</strong>
|
|
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.
|
|
|
|
|
|
The parser will replace attribute reference with its value if its exist,
otherwise it will keep it as is.
|
|
The cross reference text can be customized using attribute name "reftext"
with value is the alternative text to be displayed on anchor.
|
|
|
|
|
|
|
|
|
|
|
|
If the inline formatting syntax begin with "\", it will be ignored
and will be considered as single character.
|
|
Subscript is inline formatting that wrap string without space with "~".
Superscript is inline formatting that wrap string without space with "^".
|
|
Single quote curve is the one that start with ('`) and end with (`').
If (`') does not have a start format it will turn into apostrophe.
|
|
|
|
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.
|