Comments (4)
Well, just noticed it is able to tell whether a node containing \n\n
is merged by testing node.position.start.line == node.position.end.line
...
from remark.
Which version of mdast are you using?
As in, with the above markdown example i get the following AST (on the latest mdast version):
{
"type": "root",
"children": [
{
"type": "html",
"value": "<div>text\n\n</div>",
"position": {
"start": {
"line": 2,
"column": 1
},
"end": {
"line": 4,
"column": 7
}
}
}
],
"position": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 4,
"column": 7
}
}
}
Regarding merging being an error. Why? Why is it an error to treat that document as a single HTML node, to ignore “balance”?
In addition, mdast is not an HTML parser. It doesn’t care about “valid” HTML—that’s one of the reason it’s so awesome: the strongness is detected in the following:
<sup>**text**
</sup>
from remark.
Could you let me know if this referenced commit changes thing, and if not, could you desire more thoroughly what you want?
from remark.
Hey @uasi, I’m closing this due to no response. Let me know if this decision was made in error.
from remark.
Related Issues (20)
- Footnotes do not work within mermaid diagrams HOT 2
- How to display incomplete PHP code outside of a code block HOT 4
- Unified v11 has been released, can remark be updated to support it? HOT 4
- New release with updated dependencies HOT 8
- TypeError: this.getData is not a function HOT 4
- `Compile` not set when used as a unified plugin HOT 4
- [remark-parse] Ordered lists are not recognized if they both use leading zeroes and interrupt a block HOT 11
- Remark plugin is un-escaping content HOT 4
- HTML entity is mangled HOT 4
- Thematic break after image is parsed as an heading level 2 HOT 3
- remark-cli no longer allows using multiple plugins via the `--use` parameter HOT 2
- Underline feature is not working with remark HOT 4
- 🚀 Support Github-style Alerts, Callouts, etc. (Beta) HOT 9
- Module not found: Can't resolve 'devlop' in '/app/node_modules/remark/node_modules/unified/lib' HOT 2
- Incorrect Parsing of Markdown with Special Characters Adjacent to Strong Tags in Non-English Contexts HOT 2
- Publish packages to JSR HOT 5
- Ampersand gets escaped unnecessarily in URL and breaks it. HOT 2
- Incorrect markdown to html italic + bold+italic + italic HOT 3
- `npx remark` stopped working HOT 7
- Code fenced blocks are not processed properly HOT 2
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 remark.