Comments (4)
Duplicate of #32
from markdown-rs.
@ChristianMurphy I agree that the end result could be about the same than with a plugin architecture.
That being said, somehow allowing to use to_html::compile
directly would be a quick win that would not require any complex architecture.
Would you consider making more of the internals public in the crate?
from markdown-rs.
to_html
does not work on ASTs. The functionality you are looking for is not here.
There will not be a mdast -> html transform.
Eventually there will be an mdast -> hast step, and then finally a hast -> html step.
The first step is already privately implemented in https://github.com/wooorm/mdxjs-rs.
There is no hast -> html step yet, but it would be porting https://github.com/syntax-tree/hast-util-to-html/blob/main/lib/index.js to Rust.
Currently, this project is ± at a level of trying to figure out how people want to use it, before committing to particular APIs.
All of these steps are available in the JavaScript world. As this is Rust, the Rust part might affect it.
from markdown-rs.
Right, I went through the code too quickly. Now I understand why it's a duplicate of #32.
Thanks a lot 👍
from markdown-rs.
Related Issues (20)
- Expose a way to compile mdast to html HOT 1
- crate::Options is not `Sync` HOT 6
- Convert HTML into Markdown HOT 2
- Would you consider exposing a more structured error type? HOT 8
- Would `to_mdast()` return variants of `mdast::Node` other than `mdast::Node::Root`? HOT 1
- Whitespace text nodes cannot appear as a child of <tr>
- HTML in markdown HOT 2
- GFM strikethrough causes nested attention sequences to be considered just text data HOT 3
- Option to only produce tags for explicit markdown HOT 2
- Inlines in Image HOT 3
- Stronger types HOT 5
- Allow both gfm (for tables) and allow embedding HTML with allow_dangerous_html HOT 1
- Field-variants rather than tuple-variants for Block, Span HOT 1
- log spamming
- API for creating extensions? HOT 1
- How to get math working HOT 4
- Get marker delimitation HOT 4
- to_html_with_options isn't found HOT 3
- Whitelist anchor HTML tags? HOT 8
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 markdown-rs.