~shulhan/asciidoctor-go

Release asciidoctor-go v0.4.1 (2023-03-02)

=== Bug fixes

* all: fix empty line printed on ToHTMLBody or ToHTMLEmbedded
* all: ignore parsing block image in paragraph

=== Enhancements

* all: handle empty preamble
all: move CHANGELOG from _doc to root

The idea is to allow viewer to view the repository CHANGELOG without
changing to directory _doc.
all: fix empty line printed on ToHTMLBody or ToHTMLEmbedded

Given the following adoc,

----
= T
----

If we call ToHTMLBody, the output is

----

<div id="header">
<h1>T</h1>
----

This changes fix the empty line at the top.
all: handle empty preamble

If the document contains empty preamble do not output the HTML wrapper of
it.
all: update share modules
all: ignore parsing block image in paragraph

Previously, if we have block image in paragraph, we parse it as inline
image but with invalid src, for example

  image::my.png[multi
  line]

would be parsed as <img src=":imy.png" alt="multi line">.
This is incorrect according to asciidoctor output.
Release asciidoctor-go v0.4.0 (2023-02-12)

===  New features

* all: add support for document attribute "last-update-label"
* all: implement inline macro for passthrough ("pass:")
* all: implement macro "footnote:"

===  Bug fixes

* all: detach parsing preamble from content.
  This is to prevent empty preamble being rendered in HTML content.

* all: fix the orders of generated HTML meta

===  Enhancements

* all: support multi line attribute values
go.mod: update share module to v0.43.0
all: update reference for preamble and add unit test
all: support multi line attribute values

If the attribute value end with backslash '\', the value continue to the
next line.
all: trim right spaces on each lines before parsing

This is to minimize checking for space when parsing later.
all: detach parsing preamble from content

This is to prevent empty preamble being rendered in HTML content.
all: add package documentation and comment on Version
all: fix the orders of generated HTML meta

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!".
all: add support for document attribute "last-update-label"

By default the last-update-label value set to "Last updated" and the
value is the document modification time.

If the label is suppressed with "!", no "Last updated" will be print
on the footer.
all: run test before lint

This is to make sure that the test pass, since the linting is optional.
all: store the list item counter inside element

In the parseListOrdered, each time we found list item, we store its
counter and increment it by one so backend can use it to render the
counter.
all: implement inline macro for passthrough ("pass:")

The inline passthrough "pass:" can be used to control the substitutions
applied to a run of text.

Ref: https://docs.asciidoctor.org/asciidoc/latest/pass/pass-macro/
_doc: update grammar for meta key (attribute key)

The meta key name must start with letter, digits, or _, but after
that _ is not allowed.
all: make the macro parser independent, out of inlineParser

The idea is to move the parser to macro later so it can be reused by
html substitution.
Next