milkdown icon indicating copy to clipboard operation
milkdown copied to clipboard

[Bug] mark don't work right

Open 4-1-1 opened this issue 2 years ago • 6 comments

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 image

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.

4-1-1 avatar Jun 08 '22 13:06 4-1-1

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.

Saul-Mirone avatar Jun 08 '22 14:06 Saul-Mirone

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

4-1-1 avatar Jun 09 '22 02:06 4-1-1

That's a bug I think.

Saul-Mirone avatar Jun 09 '22 03:06 Saul-Mirone

Seems it's about example 358.

Screen Shot 2022-06-09 at 12 27 30

Saul-Mirone avatar Jun 09 '22 04:06 Saul-Mirone

Do you have any plan, to support it ? or update the input rules and mark command?

4-1-1 avatar Jun 09 '22 11:06 4-1-1

I'll figure out how to do it when I have time.

Saul-Mirone avatar Jun 10 '22 02:06 Saul-Mirone