aboutsummaryrefslogtreecommitdiff
path: root/testdata/test.got.html
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-03-30all: move the sect anchor element to the rightShulhan
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.
2026-03-26all: make the anchor symbol position on the right side of headersShulhan
In Asciidoctor, when `:sectanchors:` is set, the default anchor symbol position is absolute on the left side of heading text with block display option (the symbol located outside of box area of headers). In special case, this cause an overflow when the generated HTML are rendered inside flex with fixed height (the body is scrollable with empty content on bottom). This module changes the anchor symbol position to the right side of heading text to prevent scroll on such layout, without absolute position and normal inline layout.
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.
2026-01-24all: add aria-label to the anchor when sectanchor enabledShulhan
The aria-label help user with screen reader to discern and navigate the anchor. Ref: https://dequeuniversity.com/rules/axe/4.11/link-name
2026-01-23all: update default CSS to asciidoctor v2.0.26Shulhan
2026-01-23all: use separate file with go:embed for default CSSShulhan
Using separate file allow tracking and modifying the style as needed.
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: redact the "Last updated" time in test-parser HTML filesShulhan
Every time we execute "make test-parser", the generated HTML files will changes the "Last updated xxx" (where xxx is the time its executed). This changes prevent this unnecessary diff in the future.
2025-02-13all: add default HTML stylesheetShulhan
The generated HTML now contains the default stylesheet. The stylesheet is copied from HTML file generated by Asciidoctor v2.0.23.
2025-02-13testdata: add test data for unordered list with custom marker "[none]"Shulhan
2025-01-06go.mod: update all dependencies and Go to version 1.23.4Shulhan
2024-09-07Release asciidoctor-go v0.6.0 (2024-09-07)v0.6.0Shulhan
=== Breaking changes * all: rename struct "AttributeEntry" to "DocumentAttribute" This is to make the struct is clear that it represent the document attribute. * all: rename struct "AttributeEntry" to "DocumentAttribute" This is to make the struct is clear that it represent the document attribute. * all: refactoring DocumentAttribute into struct Using struct limit the value to only string, while some attributes can be an integer value, for example "leveloffset". === New features * all: support document attribute "leveloffset" The ":leveloffset:" on document attribute allow increment or decrement the heading level on included files. Reference: https://docs.asciidoctor.org/asciidoc/latest/directives/include-with-leveloffset/ === Enhancements * all: use strict document header format 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. * all: remove unnecessary TrimRight Each lines to be parsed has been trimmed on the first load, so there is no need to do it again, on some cases.
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.
2024-04-04Release asciidoctor-go v0.5.2 (2023-04-04)v0.5.2Shulhan
This release only contains chores. * all: replace module "share" with "pakakeh.go" The "share" module has been moved to new repository with new name at "https://sr.ht/~shulhan/pakakeh.go". For more information see the change logs at "pakakeh.go" module. * all: comply with linter recommendations Most of the code changes related to refactoring if-else witch switch statement. * all: replace if-else bytes.Equals with static string case comparisons Using string instead of [bytes.Equal] give code much more readable.
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
2023-03-02all: handle empty preambleShulhan
If the document contains empty preamble do not output the HTML wrapper of it.
2022-12-16all: fix the orders of generated HTML metaShulhan
The meta tags from original asciidoctor are ordered as viewport, generator, description, keywords, and then author. While at it remove empty style tag due to when testing we use empty.css not "stylesheet!".
2022-10-20all: implement macro "footnote:"Shulhan
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.
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-08-06Release asciidoctor-go v0.3.1 (2022-08-06)v0.3.1Shulhan
=== Chores * all: rewrite unit tests for inlineParser using test.Data * all: cleaning up codes * go.mod: update share to v0.40.0
2022-08-05go.mod: update share to v0.40.0Shulhan
This update fix some issues related to new line on test.Data.
2022-07-24all: sort the generated HTML meta by namesShulhan
The order of meta names are "author", "description", "generator", and then "keywords".
2022-07-24all: add default metadata "generator"Shulhan
The generator metadata contains the library name and its current version.
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".