From: Paul Hänsch Date: Wed, 20 Sep 2023 17:04:05 +0000 (+0200) Subject: bugfix: recognize center and left aligned pipe tables X-Git-Url: http://git.plutz.net/?p=cgilite;a=commitdiff_plain;h=b846014f18903c24ff681029627d4414512aea7b bugfix: recognize center and left aligned pipe tables --- diff --git a/markdown.awk b/markdown.awk index e478156..6143b73 100755 --- a/markdown.awk +++ b/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