aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/output/xmls.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-07-11 10:46:08 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2019-10-17 19:07:20 -0400
commite6bae1ca42533a1736dfd1a7c8c68a8a80047e09 (patch)
treec533555d77e87b64d986e6f717bdc5f4070e6f0a /src/doc_reform/output/xmls.d
parentxmls, special footnotes (diff)
html scroll toc backmatter (url/link) fix
Diffstat (limited to 'src/doc_reform/output/xmls.d')
-rw-r--r--src/doc_reform/output/xmls.d3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/doc_reform/output/xmls.d b/src/doc_reform/output/xmls.d
index 3bf20cc..164613b 100644
--- a/src/doc_reform/output/xmls.d
+++ b/src/doc_reform/output/xmls.d
@@ -816,6 +816,9 @@ template outputXHTMLs() {
M doc_matters,
string _suffix = ".html",
) {
+ if (obj.metainfo.is_a == "toc" && _txt.match(rgx.inline_link_toc_to_backmatter)) {
+ _txt = _txt.replaceAll(rgx.inline_link_toc_to_backmatter, "┤#section_$1├");
+ }
_txt = inline_markup_scroll(_txt, obj, doc_matters, _suffix);
string o = para(_txt, obj, doc_matters);
return o;