Issue inline parser of Chinese
See original GitHub issueWhen I parse like **Foo:**Bar
, the result I want is <strong>Foo:</strong>Bar
, but it rendered **Foo:**Bar
. Just like before.
I think it is correct under the CommonMark specifications of English. But in Chinese, like **标题:**这是一个例子
, We’d prefer it rendered <strong>标题:</strong>这是一个例子
. Instead of adding a whitespace between **
and 这是
(It’s all I can do right now), Because we use :
rather than :
. In fact, that’s what most people does.
I wonder if an option can be added to select whether to turn on this “strict verification mode”. I don’t seem to see a similar issue.
Like this, in InlineParserImpl.java#L538, when I always keep canClose=true
, that will give me what I need.
I don’t know much about CommonMark, if I am wrong, please correct me, thank you! 😄
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top GitHub Comments
Ok. We don’t want to deviate from the spec on this, so we’re not going to change parsing logic in commonmark-java.
You can try raising an issue against the spec here, but I have the feeling in order to make it work other common cases would break: https://github.com/commonmark/commonmark-spec
您好!邮件已收到。