aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-03-26 15:38:41 +0700
committerShulhan <ms@kilabit.info>2026-03-26 15:38:46 +0700
commit4d0204028e90ecd60c74f426456c901367491ed9 (patch)
treee92f66b3247487a930a040e568639361dfcde9b9 /README.md
parent073830628f986293efc67db97b8729bc9d75f167 (diff)
downloadasciidoctor-go-4d0204028e90ecd60c74f426456c901367491ed9.tar.xz
all: make the anchor symbol position on the right side of headers
In Asciidoctor, when `:sectanchors:` is set, the default anchor symbol position is absolute on the left side of heading text with block display option (the symbol located outside of box area of headers). In special case, this cause an overflow when the generated HTML are rendered inside flex with fixed height (the body is scrollable with empty content on bottom). This module changes the anchor symbol position to the right side of heading text to prevent scroll on such layout, without absolute position and normal inline layout.
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6c15e80..908244a 100644
--- a/README.md
+++ b/README.md
@@ -159,6 +159,19 @@ Additional document attribute provides by this library,
## Notes
+### Generated HTML differences
+
+In Asciidoctor, when `:sectanchors:` is set, the default anchor symbol
+position is absolute on the left side of heading text with block display
+option (the symbol located outside of box area of headers).
+In special case, this cause an overflow when the generated HTML are
+rendered inside flex with fixed height (the body is scrollable with empty
+content on bottom).
+
+This module changes the anchor symbol position to the right side of heading
+text to prevent scroll on such layout, without absolute position and
+normal inline layout.
+
### Unsupported markup
The following markup will not supported either because its functionality is