Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bold hyper link with two * symbols causes one to be visible after parsing and removes space #3069

Closed
iKingNinja opened this issue Oct 31, 2023 · 1 comment · Fixed by #3070
Labels
category: mixed content L1 - broken Valid usage causes incorrect output OR a crash AND there is no known workaround for the issue

Comments

@iKingNinja
Copy link

Marked version: 9.1.4

Describe the bug
Writing bold hyper links with two * symbols results in the last symbol being visible and also removes the space between the last * symbol and the next character.

To Reproduce
Steps to reproduce the behavior:

  • Use marked from jsdelivr
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script>
    marked.parse("**[🤖┃bot-commands](https://discord.com/channels/870575002536280074/981392899012980796)** hello") // Output: <strong><a href="https://discord.com/channels/870575002536280074/981392899012980796">🤖┃bot-commands</a>*</strong> | rendered: 🤖┃bot-commands*hello
</script>

Rendered result:
image

Expected behavior
The parser should not include the last * symbol in the output which means the result should be 🤖┃bot-commands

@UziTech
Copy link
Member

UziTech commented Nov 1, 2023

Should be fixed in #3070
demo

@UziTech UziTech added L1 - broken Valid usage causes incorrect output OR a crash AND there is no known workaround for the issue category: mixed content labels Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: mixed content L1 - broken Valid usage causes incorrect output OR a crash AND there is no known workaround for the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants