blackfriday
blackfriday copied to clipboard
Intra-word emphasis suppression should not be triggered for emChar '*'
Expected:
*Y*TP
-> <em>Y</em>TP
But this happens:
*Y*TP
-> *Y*TP
Currently, Intra-word em-suppression does not distinguish the two types of emChar *
and _
.
That is, *
is treated as a word-connector char, too.
But in my opinion, the two emChar shall be separately treated that only underscores are treated as intra-word-connectors.
Which branch should I submit PR to?
Copying over examples from the original issue:
For example,
*(प्रतिज्ञा+ऋक्। अग्रिमायाम् उत्तरम्।)*
वि॒द्मा ते॑ अग्ने त्रे॒धा *{रूपाणि अग्नि-विद्युत्-सूर्यास्}* त्र॒याणि॑
वि॒द्मा ते॒ सद्म॒ *{नानाकुण्डेषु}* विभृ॑तम् पुरु॒त्रा *(=बहुधा)*।
वि॒द्मा ते॒ नाम॑ पर॒मं गुहा॒ यद्
वि॒द्मा तमुत्सं॒ *(=fount)* यत॑ आज॒गन्थ॑ ।
generates
, where
=बहुधा
remains unemphasized.
There are many more such cases. Another example:
नानदम्*(३)*॥
प्र*([ठू])*त्या*(३)*स्मै*(["])* पीपिइषा*([टि]--"३)*ता*(--"३)*इ।
वा*([त]--"३)*इश्वा*(["का]-%%३)*नि वि*(["] ~~मि~~)*दुषॆऎ भा*([का]%)*रा*(")*अ।
अ*([धी])*रङ्गामा*(["]-"३)*या, जा*(")*अग्म*([टू])*यो*(%)*हाइ।
आ*([कि])*पा*(-v३)*श्चा*(%)*द*(")*अ,ध्वा*([पि]~~घ्वा~~)*नो*(")*वा, ना*([पि])*रों*(")* हाइ*(")*॥
leads to the below
One expects just the stuff in paranthesis to be emphasized (and this is how jekyll rendered).
+1. For Chinese users it's a common case that * is "intra-word":
你好*世界*。
should be
<p>你好<em>世界</em>。</p>
But actually it outputs:
<p>你好*世界*。</p>