| Age | Commit message (Collapse) | Author |
|
The HTML output file from asciidoctor is renamed to test.exp.html,
and HTML output file from this library is renamed to test.got.html.
The test.html in testdata is generated from ciigo, when running
"make serve-doc".
|
|
This is to make the generated HTML from asciidoctor match with the
library.
Without it, all IDs are prefixed with "_".
|
|
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.
|
|
|
|
If the list body contains continuation with open block, the whole open
block content should be treatent as sub-of block until it end with
"--".
|
|
By using open block "--" we allow the list body content without adding
"+" for each empty line.
|
|
There are basic things that need to be done before we can implement
the "include" directive, especially on how to embed the content of
included file into the content of current document.
|
|
Previously, the following description label will not work,
https://somewhere[A]:: B
This changes fix this issue.
|
|
|
|
Custom markers including "square", "circle", "disc", "none", "no-bullet",
"unstyled", and any strings that is not part of asciidoc internal styles.
|
|
|
|
|
|
While at tif, do not set table.hasHeader if the row does not end with
empty line.
|
|
|
|
Table borders can be set by setting the "frame" and "grid" options.
|
|
If the cell contents contains multiple paragraphs, parse and render
each of them as separated block paragraph.
|
|
|
|
|
|
|
|
One of the most hardest task to finished after inline markup. It take
three refactoring until we get the current implementation.
To make the cell formatting works, we breaking down all table contents
into cells. When parsing a cells, we lookup the content before '|' and
after '\n'. If its a valid cell format, it will be set as cell format
for the next cell, otherwise it will considered as normal text.
|
|
|
|
Currently supported format with "cols" options are,
* setting number of columns,
* setting the horizontal and vertical alignment
* setting the column width
|
|
|
|
|
|
The following metadata has been implemented,
* "idprefix": changing the auto generated ID prefix
* "idseparator": changing the separator for auto generated ID
* "sectids": enabling or disabling auto generated ID
* "sectlinks": generate link on section title
* "sectanchors: generate an anchor, empty link, before section title
|
|
Also support setting and checking metadata revnumber, revdate, revremark,
and version-label.
|
|
|
|
The ToEmbeddedHTML will generate the document content only, without
header and footer.
|
|
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 will allow literal paragraph between list, for example,
* A
literal
* B
|
|
Use case: "A `/**/` *B*", should generate the following HTML
A <code>/<strong></strong>/</code> <strong>B</strong>
|
|
Use cases,
* link:{attr-ref}[Alt text]
* video::{url}[...]
* image:{a}[X, link={y}]
|
|
|
|
|
|
|
|
|
|
The cross reference text can be customized using attribute name "reftext"
with value is the alternative text to be displayed on anchor.
|
|
|
|
|
|
|
|
Also, apply div element with class sectionbody only on section L1.
|
|
|
|
|
|
The current implementation only support toc position "auto" (default)
and "preamble" with option to set toc level and title.
|
|
|
|
|
|
|
|
|
|
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 "^".
|