aboutsummaryrefslogtreecommitdiff
path: root/testdata/got.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-24all: update README and SPECSShulhan
Link each supported features to their official document and add that link as Reference in the SPECS. Currently only checked and Document header.
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: refactoring handling generate ref IDShulhan
Previously, we always set the ID prefix and separator default to "_" if its not set, this cause all of the ID is prefixed with "_". This changes use strict rules when generating ID following the Mozilla specification [1] and latest AsciiDoc Language [2]. The idprefix must be ASCII string. It must start with "_", "-", or ASCII letters, otherwise the "_" will be added to the beginning. If one of the character is not valid, it will replaced with "_". The `idseparator` can be empty or single ASCII character ('_' or '-', ASCII letter, or digit). It is used to replace invalid characters in the REF_ID. [1] https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id [2] https://docs.asciidoctor.org/asciidoc/latest/sections/id-prefix-and-separator/
2022-07-16all: realign all structsShulhan
Minimize struct allocation, * columnFormat: from 40 to 16 bytes (-24 bytes) * document: from 400 to 392 bytes (-8 bytes) * element: from 312 to 264 bytes (-48 bytes) * elementAttribute: from 80 to 72 bytes (-8 bytes) * elementInclude: from 128 to 120 bytes (-8 bytes) * elementTable: from 88 to 64 bytes (-24 bytes) * inlineParser: from 64 to 40 bytes (-24 bytes) Plus all structs in the test files.
2022-02-21all: relicense the asciidoctor-go under GPL 3.0 or laterShulhan
Signed-off-by: Shulhan <ms@kilabit.info>
2021-12-06all: fix parsing and rendering cross referenceShulhan
Previously, when parsing cross reference we assume that if the string contains upper-case letter then it's a label so we store it as title to search for ID later. The bug is when ID is set manually and its contains upper-case for example "[#Id]". This changes fix this issue by storing cross reference first, not assuming it as ID or title, and then when doing rendering we check whether its ID or title.
2021-04-06go.mod: set minimum Go version to 1.16 and update module share to v0.25.1Shulhan
The latest update on share v0.25.1 remove the last boolean parameter on lib/test.Assert().
2020-12-26all: replace space surrounding the em-dash with html symbol thin spaceShulhan
If the em-dash strings "--" flanked by space, replace the space with HTML symbol thin space.
2020-12-25inline_parser: add zero-width space after ellipsis characterShulhan
This is to make it compatible with generated HTML from asciidoctor.
2020-12-24parser: wrap value of email ref name with "mailto:[<value>]"Shulhan
This is to allow the inline parser to pick it up as macro link.
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-13html_template: change generator name from ciigo to asciidoctor-goShulhan
ciigo is original repository name where the code splitted up into library.
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: fix rendering block listingShulhan
2020-12-10all: add support for "[source]" element attributeShulhan
2020-12-10all: refactoring document parser to split content by linesShulhan
Previously, we read the raw content line by line. Unfortunately, this technique did not work for "include" directive, where the included file's content will be embedded to current content. This changes split the initial raw content by lines to make it allow injecting another lines when including directives exist.
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: fix table width calculationShulhan
If we have three columns, the first and second column width are 100/3 = 33.3333 but the last column should be 100 - (33.3333+33.3333) = 33.3334.
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-15html_backend: check for meta "version-label" when generating footerShulhan
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-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 characters replacement on inline parserShulhan
2020-11-03all: make the "icons" attribute only applicable to nodeShulhan