Giter Club home page Giter Club logo

html2md's People

Contributors

gittig11 avatar mrxujiang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

html2md's Issues

不维护了么,直接报错了

{
"code": 0,
"msg": "程序异常了~"
}

Bug report(问题描述)

Steps to reproduce(问题复现步骤)

Screenshot or Gif(截图或动态图)

Other relevant information(格外信息)

  • Your OS:
  • Your broswer version:

请问可以批量处理本地文件吗?

请问可以批量处理本地文件吗?

因为需要保留链接,故爬取了几千条html数据,而不是TXT数据。请问这种情况需要如何处理?

Other relevant information(格外信息)

  • Your OS: Win11
  • Your broswer version: EDGE

无法获取动态渲染的网页的内容

无法获取动态渲染的网页的内容

Steps to reproduce(问题复现步骤)

  1. 输入掘金网址https://juejin.cn/post/6844903617762492423
  2. 点击"一键转换"
  3. 无法获取html内容。

Screenshot or Gif(截图或动态图)

略。

Other relevant information(格外信息)

  • Your OS: Win10
  • Your broswer version: Chrome 93.0.4577.82

解决方法

除了使用 puppeteer,有更好的解决方法吗? ==

运行失败

Bug report(问题描述)

Steps to reproduce(问题复现步骤)

为什么运行失败啊,这是啥情况?node版本不对?你也没说限制版本吧

Screenshot or Gif(截图或动态图)

image

Other relevant information(格外信息)

  • Your OS:win10,64位
  • Your broswer version:Chrome 已是最新版本
    版本 107.0.5304.88(正式版本) (64 位)

segmentfault文章乱码

Bug report(问题描述)

Steps to reproduce(问题复现步骤)

  1. 输入segmentfault网址
  2. 点击“一键转换”,内容为乱码。

Screenshot or Gif(截图或动态图)

bug

Other relevant information(格外信息)

  • Your OS: win10
  • Your broswer version: Chrome Version 94.0.4606.71 (Official Build) (64-bit)

复制功能

Feature request(新功能建议)

您好,转换完之后,如果是需要保存到本地的话,我可以使用 保存为MD 这个功能。
但是如果我只是想复制下来,然后再粘贴进入我自己的笔记的话,就显得有点麻烦了,我要全选内容,再手动复制。
所以为了更加方便的复制,是否可以做个复制功能(点击按键,自动全选+复制内容)一键操作。

url转md时,首行缩进转换错误。

Bug report(问题描述)

转换csdn上面的文章时,首行缩进转换错误。

Steps to reproduce(问题复现步骤)

  1. 原文中的首行缩进,转换后的MD中,整段全部缩进了,使得显示结果为一行显示全段。需要手动去掉前面的空行才能正常显示。
  2. 原文链接:https://blog.csdn.net/zouxy09/article/details/7929348

Screenshot or Gif(截图或动态图)

  1. csdn上原文如下:
    image
  2. https://www.helloworld.net/html2md 网站转换显示如下
    image
  3. 放入有道笔记中如下:
    image

Other relevant information(格外信息)

  • Your OS: Windows 10 企业版
  • Your broswer version: chrome 92.0.4515.159(正式版本) (64 位)

本地部署,运行npm run dev失败,求救

root@-unknown253489:/home/tangchangxu/html2md# npm run dev
npm WARN invalid config proxy=""
npm WARN invalid config Must be a full url with 'http://'

[email protected] dev /home/tangchangxu/html2md
cross-env ENV=dev node server --watch server

sh: cross-env: command not found

npm ERR! [email protected] dev: cross-env ENV=dev node server --watch server
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is most likely a problem with the hello-html2md package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env ENV=dev node server --watch server
npm ERR! You can get their info via:
npm ERR! npm owner ls hello-html2md
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.16.0-4-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "run" "dev"
npm ERR! cwd /home/tangchangxu/html2md
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/tangchangxu/html2md/npm-debug.log
npm ERR! not ok code 0

建议添加图片转码的功能

Feature request(新功能建议)

文档里如果有图片,一般是连接形式。但该网页过一段时间可能就消失了。导致本地的图片也会全部失效。能否提供一个把图片转码,和文本本当一起保存,做到离线md的作用。

公众号文章中代码块解析错误

Bug report(问题描述)

微信公众号文章中的代码块,识别后多出了``符号,导致代码格式缩进等失效

Steps to reproduce(问题复现步骤)

  1. 使用公众号文章链接:https://mp.weixin.qq.com/s/ikgT9pkNVifu5Yf3erF2zg
  2. 使用html2md解析,可以查看到代码块被错误解析成了 **` `**

Screenshot or Gif(截图或动态图)

image

Other relevant information(格外信息)

  • Your OS: win10 专业版
  • Your broswer version: Edge 92.0.902.78

保留原网址

Feature request(新功能建议)

您好,在url转MD时,我们往往是保存为自己的笔记,而原文的网址我觉得最好也能保留下来(1.方便追溯原文 2.原文往往还有一些其他人的评论可以参考),可以放在MD的最后,加上: 转自 :www.xxxxx类似的。
或者是否可以在工具栏有个设置的选框,自己选择是否保留原文网站。
因为我每次使用,都会手动在MD最后加上原文网址,如果能自动添加是不是更加方便。谢谢!

Url转md出现 Enable JavaScript and cookies to continue提示

CSDN Url转md出现
Enable JavaScript and cookies to continue提示,无法正常转换

Steps to reproduce(问题复现步骤)

  1. csdn url
  2. url一键转换md
  3. 出现Enable JavaScript and cookies to continue提示,无法正常转换

Screenshot or Gif(截图或动态图)


test

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.