X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=cgilite%2Fmarkdown.awk;fp=cgilite%2Fmarkdown.awk;h=c08d856da87c1e3a1b30ea4d3b8a212bfa6856d2;hb=e39b3e7489e5210ce3b5d5137de841c13b700d9d;hp=7e29c572213e553df07563099cf52683ed11b960;hpb=f71f8fee8e4ef12fb18f8ee1aee60245a77046c5;p=shellwiki diff --git a/cgilite/markdown.awk b/cgilite/markdown.awk index 7e29c57..c08d856 100755 --- a/cgilite/markdown.awk +++ b/cgilite/markdown.awk @@ -391,7 +391,7 @@ function _block( block, LOCAL, st, len, text, title, attrib, href, guard, code, # Metadata (custom, block starting with %something) # Metadata is ignored but can be interpreted externally - } else if ( match(block, /^%[a-zA-Z]+([[:space:]][^\n]*)?(\n|$)(%[a-zA-Z]+([[:space:]][^\n]*)?(\n|$)|%([[:space:]][^\n]*)?(\n|$)|[ \t]+[^\n[:space:]][^\n]*(\n|$))*/) ) { + } else if ( match(block, /^%[a-zA-Z-]+([[:space:]][^\n]*)?(\n|$)(%[a-zA-Z-]+([[:space:]][^\n]*)?(\n|$)|%([[:space:]][^\n]*)?(\n|$)|[ \t]+[^\n[:space:]][^\n]*(\n|$))*/) ) { len = RLENGTH; st = RSTART; return _block( substr( block, len + 1) );