X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=cgilite%2Fmarkdown.awk;h=6143b73dea4ccd07e4262867480152d4ad85b028;hb=b45089e38287dd6da2cab48069cae40805f98da3;hp=e478156143dd79b59929874c5809b66b56be81f6;hpb=7ee49ea6a4595386680b9a19ae75108068b93fb0;p=shellwiki diff --git a/cgilite/markdown.awk b/cgilite/markdown.awk index e478156..6143b73 100755 --- a/cgilite/markdown.awk +++ b/cgilite/markdown.awk @@ -402,7 +402,7 @@ function _block( block, LOCAL, st, len, text, title, attrib, href, guard, code, # Pipe Tables (pandoc / php md / gfm ) } else if ( match(block, "^((\\|)?([^\n]+\\|)+[^\n]+(\\|)?)\n" \ - "((\\|)?:?(-+:?[\\|+])+:?-+:?(\\|)?)\n" \ + "((\\|)?(:?-+:?[\\|+])+:?-+:?(\\|)?)\n" \ "((\\|)?([^\n]+\\|)+[^\n]+(\\|)?(\n|$))+" ) ) { len = RLENGTH; st = RSTART; #initialize empty arrays