From 4462399434b8a11f02c5a843d46bade660796fc5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 20 Sep 2023 21:20:33 +0200 Subject: [PATCH] Squashed 'cgilite/' changes from 8928c6e..b846014 b846014 bugfix: recognize center and left aligned pipe tables git-subtree-dir: cgilite git-subtree-split: b846014f18903c24ff681029627d4414512aea7b --- markdown.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2