html-to-md
html-to-md copied to clipboard
A JS library for convert HTML<String> to markdown<String>, gzip 10kb
 类似这个,会出问题,js会被转为JavaScript ```js export default 1; ```
Hi `stonehank/html-to-md`! This is a one-off automatically generated pull request from LGTM.com :robot:. You might have heard that we’ve integrated LGTM’s underlying CodeQL analysis engine natively into GitHub. The result...
居中解析错误
如果html标签是这样的 \111,那么他会被解析成 \# 111。但是解析后md是没有居中的效果。
Input: ```html foo foo bar baz qux ``` Actual: ```markdown * foo |foo|bar| |---|---| |baz|qux| ``` Expected: ```markdown * foo |foo|bar| |---|---| |baz|qux| ```
There's an edge case wherein the library can produce markdown lacking spaces, thus joining words, which is rarely intended behavior. E.g., this: ```html This was a good year. ``` Outputs...
Could we get rid of the console.error statements in the code? It's very convoluted to disable this outside of the library. (Error logs of the form `Should not have tags...
遇到一段奇怪的html,是一个table 包含了两个 链接,但问题是, table外面有 ``` ]]> xxxxxxxxxxxxxxxxx 2025-01-13 ]]> xxxxxxxxxxxxxxxxxxx 2024-12-11 ]]> ``` 经过markdown转换后,结果基本上是空的, 请问这种情况该如何解决,谢谢
Input: ```html it's ``` Actual: ```markdown it's ``` Expected ```markdown it's ```
Input: ```html Name Description Cyndi Lauper Singer Songwriter Actress ``` Actual output: ```markdown ||| |---|---| |Name|Description| |Cyndi Lauper|Singer|Songwriter|Actress| ``` Expected output: ```markdown | Name | Description | | | |------|------------|--|--|...