aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/meta/metadoc_from_src.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc_reform/meta/metadoc_from_src.d')
-rw-r--r--src/doc_reform/meta/metadoc_from_src.d6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/doc_reform/meta/metadoc_from_src.d b/src/doc_reform/meta/metadoc_from_src.d
index 66efc04..4f12e0b 100644
--- a/src/doc_reform/meta/metadoc_from_src.d
+++ b/src/doc_reform/meta/metadoc_from_src.d
@@ -2446,7 +2446,8 @@ template DocReformDocAbstraction() {
if (auto m = line.matchFirst(rgx.block_curly_code_open)) {
/+ curly code open +/
code_block_syntax = (m.captures[1]) ? m.captures[1].to!string : "";
- code_block_numbered = (m.captures[2] == "#") ? true : false;
+ code_block_numbered = (m.captures[2].matchFirst(rgx.code_numbering))
+ ? true : false;
debug(codecurly) { // code (curly) open
writefln(
"* [code curly] %s",
@@ -2525,7 +2526,8 @@ template DocReformDocAbstraction() {
} else if (auto m = line.matchFirst(rgx.block_tic_code_open)) {
/+ tic code open +/
code_block_syntax = (m.captures[1]) ? m.captures[1].to!string : "";
- code_block_numbered = (m.captures[2] == "#") ? true : false;
+ code_block_numbered = (m.captures[2].matchFirst(rgx.code_numbering))
+ ? true : false;
debug(codetic) { // code (tic) open
writefln(
"* [code tic] %s",