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

* is converted to \* when trying to strip markdown? #32

Closed
4 tasks done
AnderssonPeter opened this issue Apr 18, 2024 · 7 comments
Closed
4 tasks done

* is converted to \* when trying to strip markdown? #32

AnderssonPeter opened this issue Apr 18, 2024 · 7 comments
Labels
🤷 no/invalid This cannot be acted upon 👎 phase/no Post cannot or will not be acted on

Comments

@AnderssonPeter
Copy link

Initial checklist

Affected packages and versions

remark: 15.0.1, strip-markdown: 6.0.0

Link to runnable example

No response

Steps to reproduce

Run the following code remark().use(strip).processSync("Testing*").toString().trimEnd()
I'm using Node 20 and npm 10.2.4 and the code was run in Chrome 123.0.6312.107

Expected behavior

the result should be Testing*

Actual behavior

The result is Testing\*

Runtime

Other (please specify in steps to reproduce)

Package manager

Other (please specify in steps to reproduce)

OS

Windows

Build and bundle tools

Vite

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Apr 18, 2024
@wooorm
Copy link
Member

wooorm commented Apr 18, 2024

yep, search through closed issues — this package still generates markdown, so that * is escaped. That may or may not be what you want

@wooorm wooorm closed this as not planned Won't fix, can't repro, duplicate, stale Apr 18, 2024
@wooorm wooorm added the 🤷 no/invalid This cannot be acted upon label Apr 18, 2024

This comment has been minimized.

@github-actions github-actions bot added 👎 phase/no Post cannot or will not be acted on and removed 🤞 phase/open Post is being triaged manually labels Apr 18, 2024
@AnderssonPeter
Copy link
Author

@wooorm i check the issues, but only read the titles, and none of them seemed like the same issue, but i guess i was wrong..
Are there any other things i need to look out for when using the output or is it just that * is escaped?

@wooorm
Copy link
Member

wooorm commented Apr 22, 2024

See #28 for example.

Yes, every punctuation character that seems to do something in markdown is escaped to prevent it from doing something.

@AnderssonPeter
Copy link
Author

Thanks for the response.

@ninja7dev

This comment was marked as spam.

@ChristianMurphy
Copy link
Member

@ninja7dev please stop adding comments everywhere remotely related to your question.
Open one new discussion, articulate your use case, so the community can offer suggestions.

@remarkjs remarkjs locked as resolved and limited conversation to collaborators Jul 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🤷 no/invalid This cannot be acted upon 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

4 participants