Avoiding emoji transform of colons using __colon__ is undocumented and buggy #1380
Closed
1 task done
Labels
docs
related to the documentation of docsify itself
Bug Report
Today I saw in #742 that supposedly you can use
__colon__
to insert colons that won't be used to transform into an emoji, as when e.g.:smile:
would become😄
.Firstly, if this is intended to be a supported work-around, it should be documented. It is not mentioned at all in the docsify documentation. Secondly, it is not working correctly.
Steps to reproduce
What is current behaviour
https://codesandbox.io/s/wizardly-noyce-44rr6?file=/README.md
Note that the first example displays correctly in the sidebar but incorrectly in the content, and the second example displays incorrectly in the sidebar but correctly in the content. 🤦
What is the expected behaviour
If
__colon__
is the preferred way of avoiding the emoji transform, it should be rendered as a:
in both the sidebar and the content consistently.As I was typing up this bug report I thought to try
:
and that does seem to work. You might want to consider adopting that as the preferred approach. I included it in my code sandbox.Other relevant information
Bug does still occur when all/other plugins are disabled?
Your OS: Mac OSX 10.14.5
Node.js version: 14.10.1
npm/yarn version: 6.14.8
Browser version: N/A
Docsify version: 4.4.1 (I see more recent versions on github, but none later than 4.4.1 published to npm)
Docsify plugins: none
Please create a reproducible sandbox
https://codesandbox.io/s/wizardly-noyce-44rr6?file=/README.md
Mention the docsify version in which this bug was not present (if any)
n/a only tried latest from npm
The text was updated successfully, but these errors were encountered: