quarto-dev / quarto-dev/quarto-cli

HTML format: clarify allowed output from filters

Offen
#6,281 0 Kommentare 2 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@cscheid arbeitet bereits daran.

Seit 20.7.2023.

enhancement html
Vorherrschende Sprache
JavaScript
Sterne
6k
Forks
458
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
41

Beschreibung

When rendering to HTML formats, if the output generated by Pandoc isn't valid HTML, then our postprocessor can get confused; quarto parses the document to make a number of DOM API calls. The consequences of invalid HTML range from nothing (the DOM parser recovers a valid structure) to corrupted output and crashing.

We should consider validating the HTML prior to running the postprocessors. This would let us give better error messages (to the effect of "something in your filters generated bad HTML"), and would allow us to make stronger statements about what we consider to be bugs in other code vs. ours.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.