From 79e6f8db13ef8f0db6da8fe4e17b7626fe6ef3e9 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 23 Nov 2021 10:50:35 -0800 Subject: Improve detection of pipe table line widths. Fixed calculation of maximum column widths in pipe tables. It is now based on the length of the markdown line, rather than a "stringified" version of the parsed line. This should be more predictable for users. In addition, we take into account double-wide characters such as emojis. Closes #7713. --- test/command/7713.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 test/command/7713.md (limited to 'test') diff --git a/test/command/7713.md b/test/command/7713.md new file mode 100644 index 000000000..d42dcd9b8 --- /dev/null +++ b/test/command/7713.md @@ -0,0 +1,28 @@ +``` +% pandoc +| aaaaaaaaaaaa | bbbbb | ccccccccccc | +| --- | --- | --- | +| | | cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc | +^D + +++++ + + + + + + + + + + + + + + +
aaaaaaaaaaaabbbbbccccccccccc
cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc
+``` -- cgit v1.2.3