Repository navigation
fix(export): a quote holding a list does not fail the HTML export - #13771
Closed
yuxi-liu-wired wants to merge 1 commit into
Closed
yuxi-liu-wired wants to merge 1 commit into
yuxi-liu-wired wants to merge 1 commit into
Conversation
yuxi-liu-wired
force-pushed
the
fix/export-html-quote-list
branch
from
October 16, 2026 18:36
150b274 to
129bf49
Compare
Contributor
Author
|
Combined with the other PRs that change the same files into #13784. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HTML export of a block whose quote holds a list (
> * x,> 1. x, or* xinside#+BEGIN_QUOTE) fails with the string "Insert at top".block-quoteinfrontend/handler/export/html.cljsbuilt the quote's content in a zipper rooted at a bare[:blockquote]. The zipper's branches are:ulnodes, so that root has no children to move to. A paragraph inside the quote works, because it only edits the root node. A list callsadd-next-level-ul-at-righton the root, andclojure.zip/insert-rightat the root throws "Insert at top".The fix builds the quote's content in a zipper rooted like the page's (
[:ul [:placeholder]]), and puts the placeholder's items and the nodes after it into[:blockquote ...]. A quote holding paragraphs exports as before.export-helperis split intoexport-hiccup, which builds the hiccup, and the rendering. The tests check the hiccup, because the rendering's pretty-print step uses the browser'sDOMParser, which Node does not have.Found by a fuzzer that exports random Markdown as text, HTML and OPML.