diff options
| author | Shulhan <ms@kilabit.info> | 2023-03-02 23:47:00 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-03-02 23:47:00 +0700 |
| commit | d2e6dd1abb7e506dbe8963c5662c95b74a7d2dfa (patch) | |
| tree | 40c49245cb36c2c15b96bfa20031c363b580258d | |
| parent | 7f263ce061a953380bf07d3d7777260ed3cd65f5 (diff) | |
| download | asciidoctor-go-d2e6dd1abb7e506dbe8963c5662c95b74a7d2dfa.tar.xz | |
Release asciidoctor-go v0.4.1 (2023-03-02)v0.4.1
=== Bug fixes
* all: fix empty line printed on ToHTMLBody or ToHTMLEmbedded
* all: ignore parsing block image in paragraph
=== Enhancements
* all: handle empty preamble
| -rw-r--r-- | CHANGELOG | 51 | ||||
| -rw-r--r-- | asciidoctor.go | 2 |
2 files changed, 52 insertions, 1 deletions
@@ -8,6 +8,57 @@ Shulhan <ms@kilabit.info> :sectlinks: +[#v0_4_1] +== asciidoctor-go v0.4.1 (2023-03-03) + +[#v0_4_1__bug_fixes] +=== Bug fixes + +all: fix empty line printed on ToHTMLBody or ToHTMLEmbedded:: ++ +-- +Given the following adoc, + +---- += T +---- + +If we call ToHTMLBody, the output is + +---- +(empty line here) +<div id="header"> +<h1>T</h1> +---- + +This changes remove the empty line at the top. +-- + + +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. +-- + + +[#v0_4_1__enhancements] +=== Enhancements + +all: handle empty preamble:: ++ +If the document contains empty preamble do not output the HTML wrapper of it. + + [#v0_4_0] == asciidoctor-go v0.4.0 (2023-02-12) diff --git a/asciidoctor.go b/asciidoctor.go index d97f78c..e5de079 100644 --- a/asciidoctor.go +++ b/asciidoctor.go @@ -11,7 +11,7 @@ import "github.com/shuLhan/share/lib/math/big" const ( // Version of this module. - Version = `0.4.0` + Version = `0.4.1` _lf = "\n" ) |
