aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG52
-rw-r--r--asciidoctor.go2
-rw-r--r--testdata/document_tohtml_test.txt4
-rw-r--r--testdata/test.exp.html4
-rw-r--r--testdata/test.got.html2
5 files changed, 58 insertions, 6 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 50ce0eb..d881d0b 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -6,6 +6,58 @@ Shulhan <ms@kilabit.info>
:sectlinks:
+[#v0_6_0]
+== asciidoctor-go v0.6.0 (2024-09-07)
+
+[#v0_6_0__breaking_changes]
+=== 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".
+
+[#v0_6_0__new_features]
+=== 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/
+--
+
+[#v0_6_0__enhancements]
+=== 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.
+
+
[#v0_5_2]
== asciidoctor-go v0.5.2 (2023-04-04)
diff --git a/asciidoctor.go b/asciidoctor.go
index d8c150d..76b2f26 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.5.2`
+ Version = `0.6.0`
_lf = "\n"
)
diff --git a/testdata/document_tohtml_test.txt b/testdata/document_tohtml_test.txt
index c72dd25..bd50046 100644
--- a/testdata/document_tohtml_test.txt
+++ b/testdata/document_tohtml_test.txt
@@ -21,7 +21,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.5.2">
+<meta name="generator" content="asciidoctor-go 0.6.0">
<meta name="description" content="Multiline description with backslash">
<meta name="keywords" content="multiline, key, words">
<meta name="author" content="John Doe">
@@ -70,7 +70,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.5.2">
+<meta name="generator" content="asciidoctor-go 0.6.0">
<meta name="author" content="John Doe">
<title>Title</title>
</head>
diff --git a/testdata/test.exp.html b/testdata/test.exp.html
index b057ec1..bfd0537 100644
--- a/testdata/test.exp.html
+++ b/testdata/test.exp.html
@@ -4,7 +4,7 @@
<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 2.0.20">
+<meta name="generator" content="Asciidoctor 2.0.23">
<meta name="description" content="meta description">
<meta name="keywords" content="key, words">
<meta name="author" content="Author A, Author mid dle B">
@@ -3054,7 +3054,7 @@ this sidebar.</p>
<div id="footer">
<div id="footer-text">
1.1.1<br>
-Last updated 2023-05-30 01:01:33 +0700
+Last updated 2024-08-16 23:57:44 +0700
</div>
</div>
</body>
diff --git a/testdata/test.got.html b/testdata/test.got.html
index 2299f90..3436474 100644
--- a/testdata/test.got.html
+++ b/testdata/test.got.html
@@ -3056,7 +3056,7 @@ this sidebar.</p>
<div id="footer">
<div id="footer-text">
1.1.1<br>
-Last updated 2024-08-12 23:31:24 +0700
+Last updated 2024-08-16 23:57:45 +0700
</div>
</div>
</body>