kilabit.info
| AmA | Build | Email | GitHub | Mastodon | Projects | SourceHut

asciidoctor-go

The asciidoctor-go is the Go module to parse the AsciiDoc markup and convert it into HTML5.

For the front-end tooling that use this library to build static website see ciigo.

Documentation

See the Go module documentation for the API and examples on how to use this library to parse and render Asciidoc file.

During reverse engineering the AsciiDoc markup, we write the syntax, rules, and format in specification file.

Features

List of available formatting that are supported on current implementation. Each supported feature is linked to official AsciiDoc Language Documentation

Supported document attribute references,

Additional document attribute provides by this library,

Notes

Unsupported markup

The following markup will not supported either because its functionality is duplicate, or inconsistent with others markup, or not secure,

Unordered list item with hyphen

The unordered list item with hyphen ('-') cause too much confusion and inconsistency.

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 (— 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

You should reserve the hyphen for lists that only have a single level because the hyphen marker (-) doesn’t work for nested lists. -- https://docs.asciidoctor.org/asciidoc/latest/lists/unordered/#basic-unordered-list

TODO

List of features which may be implemented,

Future enhancements,

(1) Create tree that link Include directive. Once the included files changes, the parent should be re-converted too.

Bugs

Unknown. If you found one, please report it here.

Development

Changelog:: List of each releases and their changes.

Repository:: Link to the source code.

Mailing list:: Link to discussion or where to send the patches.

Issues:: Link to open an issue or request for new feature.

License

Copyright (C) 2021 Shulhan <ms@kilabit.info>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.