milkdown
milkdown copied to clipboard
[Bug] mark don't work right
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
import React from 'react';
import { render } from 'react-dom';
import { Milkdown } from './component/milkdown';
const markdown = `
abc**'de**
`;
const App: React.FC = () => {
return <Milkdown value={markdown} />;
};
render(<App />, document.getElementById('app'));
Expected behavior It should be bold 'de
Screenshots
Desktop (please complete the following information):
- OS: [e.g. iOS] macos
- Browser [e.g. chrome, safari] chrome
- Version [e.g. 22] 101
milkdown version 6.1.3
Additional context Add any other context about the problem here.
That's how markdown work https://spec.commonmark.org/0.30/#left-flanking-delimiter-run
At least you should try the syntax on github's comment box to confirm it's a bug.
ok ,But some editor works with it。 And the real problem is to bold "'xxx'" with the tooltip menu, and save to preview agian , the bold style gone
That's a bug I think.
Do you have any plan, to support it ? or update the input rules and mark command?
I'll figure out how to do it when I have time.