| Age | Commit message (Collapse) | Author |
|
Previously, we try to fix the anchor position by using "flex-direction:
row-reverse".
This cause the formatted text inside title also become reversed.
For example,
== With `mono`
Will rendered as
mono With $
This is not as expected.
This changes fix this by rendering the anchor on the right after title.
|
|
The aria-label help user with screen reader to discern and navigate
the anchor.
Ref: https://dequeuniversity.com/rules/axe/4.11/link-name
|
|
This is to make it easy to see how it parsed and how it written to HTML,
make the code more searchable.
While at it, add test for block image.
|
|
This is the second we remove golangci-lint.
Previously, we replace it with revive, now we replace it with go internal
tools "go vet".
The problem is the same, golangci-lint does not works when compiled or
using gotip.
Also, on VM with 8GB memory, it will crash due to OOM.
|
|
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.
|
|
|
|
|
|
The golangci-lint does not output any results anymore
Either we are getting good at writing Go or the linter itself is become
less good.
We also have seen that the latest golangci-lint is failed to build
with Go tip, a simple "make" on the golangci-lint never success in my
experiences.
This changes fix all the output reported by the revive and shadow.
|
|
Previously, in the htmlWriteBlockQuoteEnd, if attribution is set
we add HTML tag <div> and close it later after we add citation.
The issue is we did not check if attribution is true again when we
add closing tag for div, which make the div above of blockquote get
closed.
|
|
Given the following adoc,
----
= T
----
If we call ToHTMLBody, the output is
----
<div id="header">
<h1>T</h1>
----
This changes fix the empty line at the top.
|
|
If the document contains empty preamble do not output the HTML wrapper of
it.
|
|
This is to prevent empty preamble being rendered in HTML content.
|
|
By default the last-update-label value set to "Last updated" and the
value is the document modification time.
If the label is suppressed with "!", no "Last updated" will be print
on the footer.
|
|
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/
|
|
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.
|
|
Use raw string literal whenever possible.
|
|
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>
|
|
If the em-dash strings "--" flanked by space, replace the space with
HTML symbol thin space.
|
|
|
|
This is to minimize call stack size since the method will be called
recursively.
|
|
This is for consistency on exported method names on Document object.
While at it, simplify the documentation for exported methods.
|
|
|
|
Using prefix adoc to module asciidoc is kinda bit stutter.
|
|
Previously, HTMl document generated from ToEmbeddedHTML contains div
with id "content" and sub div "preamble".
This changes, make the ToEmbeddedHTML generate the HTML document without
those divs wrapper.
|
|
|
|
|
|
Custom markers including "square", "circle", "disc", "none", "no-bullet",
"unstyled", and any strings that is not part of asciidoc internal styles.
|
|
|
|
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
|
|
|
|
Including "no-header-footer", "no-footer", "title", and "notitle"
|
|
Also support setting and checking metadata revnumber, revdate, revremark,
and version-label.
|
|
|
|
Inlining all short HTML templates to HTML backend.
|
|
|
|
The ToEmbeddedHTML will generate the document content only, without
header and footer.
|
|
If the meta "noheader" is set, the document header will not be rendered.
|
|
This changes also support different title separator using meta attribute
"title-separator".
|
|
Remove unused constants and functions, replace Write() with fmt.Fprint(),
and other fixes.
|