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

Handle raw HTML embedded in Markdown #44

Open
max-heller opened this issue Jan 1, 2024 · 0 comments
Open

Handle raw HTML embedded in Markdown #44

max-heller opened this issue Jan 1, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@max-heller
Copy link
Owner

max-heller commented Jan 1, 2024

Currently, raw HTML tags in the Markdown source are usually ignored or passed through to Pandoc, which ignores them. This doesn't work well for a few reasons:

Options:

  • Force Pandoc to parse raw HTML
    • This doesn't handle raw HTML inlines e.g. <a href="foo"></a>
    • Filters run after the reader is finished, so this won't work for HTML containing links (they need to be corrected with --file-scope)

Considerations:

  • Parsing should happen before mdbook-pandoc does its preprocessing pass. Accomplishing this without running Pandoc once per HTML section in each source file seems difficult
  • Parsing should happen before Pandoc is run with --file-scope so links in raw HTML are adjusted correctly

See also:

@max-heller max-heller added the enhancement New feature or request label Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant