Comments (3)
The escaping is intentional.
Some more context on a recent question asking the same thing: https://github.com/orgs/syntax-tree/discussions/87
Repeating some of that here:
Taking a step back,
remark
is an AST ecosystem.
Meaning it will preserve the structure/presentation of the content, but will not retain the exact characters.
You can read more about this is some previous discussions on AST vs CST.
https://github.com/remarkjs/remark/search?q=cst&type=issues and https://github.com/orgs/remarkjs/discussions?discussions_q=cstIn this case the escaped output is fine, it doesn't matter if it is escaped, the final presentation will be the same.
Adding on some additional context, if you are looking for full plain text rather than stripped down markdown text.
Consider using https://github.com/syntax-tree/mdast-util-to-string rather than remark-stringify
to generate plain text rather than markdown text.
from strip-markdown.
Hi! This was closed. Team: If this was fixed, please add phase/solved
. Otherwise, please add one of the no/*
labels.
from strip-markdown.
Thanks @ChristianMurphy! mdast-util-to-string
is doing exactly what I needed:
const tree = fromMarkdown(markdown);
return toString(tree);
from strip-markdown.
Related Issues (13)
- Not working with current mdast? HOT 3
- Stripping URL outputs HTML escaped character for the colon ( : ) HOT 8
- Comments cause entire line to be dropped HOT 5
- Option to keep list characters HOT 15
- Type definitions HOT 2
- Fix exception for parents without children HOT 2
- HTML in Markdown HOT 6
- Add typescript types HOT 1
- Does not seem to remove tables HOT 2
- Removing alt text for images HOT 1
- Add remark as peer dependency HOT 1
- Keep existing new lines when thematic breaks are removed HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from strip-markdown.