Wrong character width in full-width symbol
- Dominant language
- Haskell
- Stars
- 24
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
This is my source markdown.
```
+---------+---------+---------+
| | column1 | column2 |
+:========+:=======:+:=======:+
| row1 | x | a |
+---------+---------+---------+
| row2 | ◯ | a |
+---------+---------+---------+
| row3 | ✕ | a |
+---------+---------+---------+
| row4 | あ | a |
+---------+---------+---------+
```
I got following result:
```
column1
column2
row1
x
a
row2
◯ |
a
row3
✕ |
a
row4
あ
a
```
There is a problem on the next line.
```
◯ |
```
and
```
✕ |
```
These results include `|` character.
I can modify the source markdown to get the expected result as follows.
```
+---------+---------+---------+
| | column1 | column2 |
+:========+:=======:+:=======:+
| row1 | x | a |
+---------+---------+---------+
| row2 | ◯ | a |
+---------+---------+---------+
| row3 | ✕ | a |
+---------+---------+---------+
| row4 | あ | a |
+---------+---------+---------+
```
However, it is not beautiful.
I think it's a half-width and full-width misjudgment.
`◯` and `✕` are full width character as well as `あ`.
# Command line
```
sudo docker run --rm --mount type=bind,source=$(pwd),destination=/data pandoc/core -o out.html src.md
```
# Version
```
# pandoc --version
pandoc 2.14.2
Compiled with pandoc-types 1.22, texmath 0.12.3.1, skylighting 0.11,
citeproc 0.5, ipynb 0.1.0.1
User data directory: /root/.local/share/pandoc
Copyright (C) 2006-2021 John MacFarlane. Web: https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.