Skip to content
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

Markdown to ePub Edgecase Document List #1027

Open
3 of 9 tasks
crutchcorn opened this issue Feb 17, 2024 · 2 comments
Open
3 of 9 tasks

Markdown to ePub Edgecase Document List #1027

crutchcorn opened this issue Feb 17, 2024 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@crutchcorn
Copy link
Member

crutchcorn commented Feb 17, 2024

@crutchcorn crutchcorn added bug Something isn't working enhancement New feature or request labels Feb 17, 2024
@fennifith
Copy link
Member

Internal links that are part of the same collection need to be removed entirely

It looks like internal links are possible within an epub - likewise for supporting anchors/heading links. Would this be something we want to implement instead of removing them entirely?

(this would require mapping each chapter link to the filename that it goes into - which can be passed into html-to-epub)

@MateuszWasik
Copy link
Member

MateuszWasik commented Mar 20, 2024

<details> and <summary> need to expand before rendering to ePub

It appears that <details> and <summary> elements are not supported by the EPUB format, and our rehype plugin, intended to expand those elements before rendering EPUB, is not functioning.

As we discussed, the solution is to transform those elements into divs and add a class that will style them to resemble <details> exactly. This transformation will be implemented within the rehype plugin before rendering to the EPUB format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants