Skip to content

Feature: Convert Markdown to EPUB #352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 14, 2025

Conversation

fantasyczl
Copy link
Contributor

This PR adds support for converting Markdown files into EPUB format, making it easier to read notes in apps like Apple Books and WeChat Read.

Highlights:

Added EPUB export functionality
Compatible with multiple ebook platforms
Looking forward to your review!

@yingang yingang merged commit 57801ea into Vonng:main Apr 14, 2025
@yingang
Copy link
Collaborator

yingang commented Apr 14, 2025

Encountered some tex related warnings when trying to build epub with your scripts and not sure if it was caused by my own internet connection.

Anyway, thanks for your contribution!

@fantasyczl
Copy link
Contributor Author

I don't see any TeX warnings on my computer. Could you provide some warning messages so I can take a look at what the issue is?

@fantasyczl fantasyczl deleted the feature_generate_epub branch April 20, 2025 11:39
@yingang
Copy link
Collaborator

yingang commented Apr 21, 2025

I don't see any TeX warnings on my computer. Could you provide some warning messages so I can take a look at what the issue is?

除了少数几个这种:

[WARNING] Note with key '译注i' defined at /home/yingang/ddia/ch3.md line 173 column 1 but not used.
[WARNING] Note with key 'viii' defined at /home/yingang/ddia/ch9.md_chunk line 3 column 1 but not used.

其它基本都是这样的,看上去像是连接的问题:

[WARNING] Could not fetch resource https://latex.codecogs.com/png.latex?t_x: PandocHttpError "https://latex.codecogs.com/png.latex?t_x" (HttpExceptionRequest Request {
    host                 = "latex.codecogs.com"
    port                 = 443
    secure               = True
    requestHeaders       = []
    path                 = "/png.latex"
    queryString          = "?t_x"
    method               = "GET"
    proxy                = Nothing
    rawBody              = False
    redirectCount        = 10
    responseTimeout      = ResponseTimeoutDefault
    requestVersion       = HTTP/1.1
    proxySecureMode      = ProxySecureWithConnect
  }
   ConnectionTimeout)

@fantasyczl
Copy link
Contributor Author

  1. 前两个问题,我也碰到过,以前没有太在意,仔细看了一下,在 ch03.md 和 ch09.md 中有两个引用不对。已经修正了,在fix: 修复错误的引用 #353
  2. 后面的问题看起来是网络,可以尝试使用浏览器打开: https://latex.codecogs.com/png.latex?t_x 网络正常应该能看到一个图标。可以试试看看。

@yingang
Copy link
Collaborator

yingang commented Apr 22, 2025

谢谢,前一个已经合并了,后一个警告里的链接试了下倒是可以直接打开,但运行脚本的时候还是会有这些警告,不知道是为什么了,从字面上看还是网络相关。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants