mattn / godown Goto Github PK
View Code? Open in Web Editor NEWConvert HTML into Markdown
License: MIT License
Convert HTML into Markdown
License: MIT License
I've been thinking that perhaps we can use goldmark's AST as a middleground for converting HTML to MD.
net/html
I've been working on converting a different format into markdown, this method has been quite smooth as far as I can parse to AST correctly.
I was thinking that we could do a similar thing for HTML. Bonus point is that it'll make it easier to extend and support many markdown flavours and extensions. GFM is already covered.
This will likely be a breaking change since something like setting custom options will no longer work the same way.
If you think it makes sense I could work on it once I have less work on my hands.
Thank your work for this repo,I use it in my project,It is great. But I found a question
<table>
<thead>
<tr>
<th>foo1</th>
<th>bar1</th>
</tr>
</thead>
<tbody>
<tr>
<td>foo2</td>
<td>bar2</td>
</tr>
</tbody>
</table>
Convert Output
|foo2 | bar2|
I think it should output
|foo1 | bar1|
|=== | ----|
|foo2 | bar2|
tks again
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.