diff options
| author | Shulhan <ms@kilabit.info> | 2025-04-18 16:28:15 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-04-18 16:29:09 +0700 |
| commit | a6d11741c4c050cb0cec96f588baff6366da30d2 (patch) | |
| tree | 0d9ee4eb0223d09395d69a7024cb27f13c33f9dc | |
| parent | 552a3d83e549ead4c348f94d2a704ec9e23d0a6c (diff) | |
| download | asciidoctor-go-a6d11741c4c050cb0cec96f588baff6366da30d2.tar.xz | |
Release asciidoctor-go v0.7.0 (2025-04-18)v0.7.0
[NEW FEATURE] Support include directive inside block code.
Example of block code with include directive,
----
...
include::file[]
...
----
[NEW FEATURE] Support document attribute "docdir"
The "docdir" attribute contains the full path of the directory that
contains the source document.
By default it is set to the directory where the Document resided.
[NEW FEATURE] Add default HTML stylesheet.
The generated HTML now contains the default stylesheet.
The stylesheet is copied from HTML file generated by Asciidoctor
v2.0.23.
| -rw-r--r-- | CHANGELOG | 30 | ||||
| -rw-r--r-- | asciidoctor.go | 2 | ||||
| -rw-r--r-- | testdata/document_tohtml_test.txt | 4 |
3 files changed, 31 insertions, 5 deletions
@@ -4,13 +4,39 @@ Shulhan <ms@kilabit.info> :toc: :sectlinks: +:four-strips: ---- + +[#v0_7_0] +== asciidoctor-go v0.7.0 (2025-04-18) + +[NEW FEATURE] **Support include directive inside block code**. + +Example of block code with include directive, + +.... +---- +... +include::file[] +... +---- +.... + +[NEW FEATURE] **Support document attribute "docdir"** + +The "docdir" attribute contains the full path of the directory that +contains the source document. +By default it is set to the directory where the Document resided. + +[NEW FEATURE] **Add default HTML stylesheet.** + +The generated HTML now contains the default stylesheet. +The stylesheet is copied from HTML file generated by Asciidoctor v2.0.23. [#v0_6_2] == asciidoctor-go v0.6.2 (2025-02-01) -[BUG FIX] -Fix section detected as paragraph after list and comment. +[BUG FIX] **Fix section detected as paragraph after list and comment.** + Previously, given the following markup, ---- * Sub list diff --git a/asciidoctor.go b/asciidoctor.go index c894409..7aa9eb3 100644 --- a/asciidoctor.go +++ b/asciidoctor.go @@ -11,7 +11,7 @@ import "git.sr.ht/~shulhan/pakakeh.go/lib/math/big" const ( // Version of this module. - Version = `0.6.2` + Version = `0.7.0` _lf = "\n" ) diff --git a/testdata/document_tohtml_test.txt b/testdata/document_tohtml_test.txt index 65b1d7a..fc29e25 100644 --- a/testdata/document_tohtml_test.txt +++ b/testdata/document_tohtml_test.txt @@ -22,7 +22,7 @@ Document body. <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> -<meta name="generator" content="asciidoctor-go 0.6.2"> +<meta name="generator" content="asciidoctor-go 0.7.0"> <meta name="description" content="Multiline description with backslash"> <meta name="keywords" content="multiline, key, words"> <meta name="author" content="John Doe"> @@ -72,7 +72,7 @@ Section 2 content. <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> -<meta name="generator" content="asciidoctor-go 0.6.2"> +<meta name="generator" content="asciidoctor-go 0.7.0"> <meta name="author" content="John Doe"> <title>Title</title> </head> |
