aboutsummaryrefslogtreecommitdiff
path: root/testdata/test.html
AgeCommit message (Collapse)Author
2022-07-24all: rename the HTML output for test-parserShulhan
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".
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-07-16all: reformat all Go filesShulhan
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.
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-05html_backend: parse cell contents by paragraphsShulhan
If the cell contents contains multiple paragraphs, parse and render each of them as separated block paragraph.
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-15all: add method ToEmbeddedHTMLShulhan
The ToEmbeddedHTML will generate the document content only, without header and footer.
2020-11-12all: rewrite HTML backend template without text/templateShulhan
Instead of using text/template, we use constants of strings. This is give us more simple template and allow us to minimize duplicate code.
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
2020-10-29all: implement parser for block passthroughShulhan
2020-10-29all: implement parser for inline URL and linkShulhan
2020-10-28all: handle escaped character when parsing inline formattingShulhan
If the inline formatting syntax begin with "\", it will be ignored and will be considered as single character.
2020-10-27all: implement parser for subscript and superscriptShulhan
Subscript is inline formatting that wrap string without space with "~". Superscript is inline formatting that wrap string without space with "^".