aboutsummaryrefslogtreecommitdiff
path: root/testdata/test.adoc
AgeCommit message (Collapse)Author
11 daysall: fix parsing literal paragraphShulhan
A line that start with one or more space will be considered as literal paragraph. Once literal line found it will end until an empty line.
2026-02-23testdata: add test for paragraph followed by unordered listShulhan
The asciidoctor behaviour will not recognize list that is not started by empty line, similar to our implementation.
2025-04-18all: disable generating HTML meta for "generator" in testsShulhan
The "generator" value will changes on each releases, so better to disable it to minimize noise during release commit.
2025-02-13testdata: add test data for unordered list with custom marker "[none]"Shulhan
2024-08-12all: use strict document header formatShulhan
Previously, an empty line before Document Title cause the parser stop parsing the document header, now an empty lines are skipped. Also document attribute can be place anywhere, either before or after title, and in between attributes; now it can be only placed after revision or author or title.
2023-05-30all: handle custom marker in between unordered listShulhan
Given the following markup, [square] * item 1 [circle] ** item 2 The list on item 2 now start with `<div class="ulist circle">`.
2023-05-28all: add support for unordered list with '-'Shulhan
The unordered list item with hyphen ('-') cause too much confusion and inconsistency, nevertheless most of still use it. Case one, given the following markup, ``` - Item 1 + "A line of quote" -- Author ``` Is the "Author" the sub item in list or we are parsing author of quote paragraph? Case two, the writer want to write em dash (`&#8212;` in HTML Unicode) but somehow the editor wrap it and start in new line. As a reminder, the official documentation only recommend using hyphen for simple list item [1]. [1] https://docs.asciidoctor.org/asciidoc/latest/lists/unordered/#basic-unordered-list
2022-09-05all: fix parsing list description inside include directiveShulhan
Previously, given the following include statements in the main document include::list_desc.adoc[] include::list_desc.adoc[] Where list_desc.adoc content is, Item 00:: + -- * Bullet 0 + Description 0. * Bullet 1 -- The first include is parsed correctly, but the second include is parsed as is.
2022-07-17testdata: set attribute idprefix to emptyShulhan
This is to make the generated HTML from asciidoctor match with the library. Without it, all IDs are prefixed with "_".
2022-02-21all: relicense the asciidoctor-go under GPL 3.0 or laterShulhan
Signed-off-by: Shulhan <ms@kilabit.info>
2020-12-20all: fix list description item than span on multiple linesShulhan
2020-12-20all: fix parsing list with open blockShulhan
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 "--".
2020-12-13document_parser: fix parsing open block inside list itemShulhan
By using open block "--" we allow the list body content without adding "+" for each empty line.
2020-12-10all: preparing implementation for "include" directiveShulhan
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.
2020-12-09all: fix parsing description list with linkShulhan
Previously, the following description label will not work, https://somewhere[A]:: B This changes fix this issue.
2020-12-08all: add support for checklist in unordered listShulhan
2020-12-08all: support custom markers on unordered listShulhan
Custom markers including "square", "circle", "disc", "none", "no-bullet", "unstyled", and any strings that is not part of asciidoc internal styles.
2020-12-05all: add support for escaping cell separatorShulhan
2020-12-05all: render the table caption with auto numberingShulhan
2020-12-05all: add test cases for table orientationShulhan
While at tif, do not set table.hasHeader if the row does not end with empty line.
2020-12-05all: support setting table stripes stylesShulhan
2020-12-05all: add support for setting table bordersShulhan
Table borders can be set by setting the "frame" and "grid" options.
2020-12-04all: support setting table width and with autowidth optionShulhan
2020-11-30all: implement table options "footer"Shulhan
2020-11-29all: implement table options "header" and "noheader"Shulhan
2020-11-29all: implement cell formattingShulhan
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.
2020-11-24all: support all column style "a", "e", "h", "l", "m", "d", "s", "v"Shulhan
2020-11-23all: implement parser for tableShulhan
Currently supported format with "cols" options are, * setting number of columns, * setting the horizontal and vertical alignment * setting the column width
2020-11-16all: support forcing line break by ending the line with " +\n"Shulhan
2020-11-16all: support section "[discrete]" headings styleShulhan
2020-11-15all: implement additional metadatasShulhan
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
2020-11-15all: unpack the revision number, date, and remark into RevisionShulhan
Also support setting and checking metadata revnumber, revdate, revremark, and version-label.
2020-11-15all: add support for multiple authors with emailShulhan
2020-11-09document: check for literal paragraph when parsing listShulhan
This will allow literal paragraph between list, for example, * A literal * B
2020-11-08test: add test for inline formatting with no contentShulhan
Use case: "A `/**/` *B*", should generate the following HTML A <code>/<strong></strong>/</code> <strong>B</strong>
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-05all: support meta attributes "description" and "keywords"Shulhan
2020-11-04all: parse inline format on list description item labelShulhan
2020-11-04all: support inline image with link optionShulhan
2020-11-03all: implement section numbering with sectnums and sectnumlevelsShulhan
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: use consistent names and rules between literal and listing blocksShulhan
2020-10-30all: fix rendering toc by levelsShulhan
Also, apply div element with class sectionbody only on section L1.
2020-10-29all: add support for toc position "macro"Shulhan
2020-10-29all: add support to set ToC position to "left" or "right"Shulhan
2020-10-29all: implement parser and HTML renderer for table of contentsShulhan
The current implementation only support toc position "auto" (default) and "preamble" with option to set toc level and title.
2020-10-29all: parse inline formatting on section titleShulhan
2020-10-29all: implement parser for inline imageShulhan