Closed black-desk closed 6 months ago
Current djot.js allows non-ascii heading:
# 中文
After renderDjot it becomes:
renderDjot
{#中文} # 中文
As djot.js use \w to scan id, it fails to parse {#中文} as block attributes.
\w
{#中文}
I copy the regexp from getUniqueIdentifier to fix this issue.
getUniqueIdentifier
Signed-off-by: black-desk me@black-desk.cn
Current djot.js allows non-ascii heading:
After
renderDjot
it becomes:As djot.js use
\w
to scan id, it fails to parse{#中文}
as block attributes.I copy the regexp from
getUniqueIdentifier
to fix this issue.Signed-off-by: black-desk me@black-desk.cn