Skip to content

Saw ? in state TagOpen #3005

@nazar-pc

Description

@nazar-pc

Problem

When using https://github.com/danieleades/mdbook-d2, rendering results in a lot of warnings due to inline SVG like this:

 WARN html parse error in `Execution_environment/Contracts_overview.md`: Saw ? in state TagOpen
Html text was:
<pre><?xml version="1.0" encoding="utf-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" d2Version="v0.6.8" preserveAspectRatio="xMinYMin meet" viewBox="0 0 1153 388"><svg id="d2-svg" class="d2-243733403" width="1153" height="388" viewBox="10 11 1153 388"><rect x="10.000000" y="11.000000" width="1153.000000" height="388.000000" rx="0.000000" class=" fill-N7" stroke-width="0" /><style type="text/css"><![CDATA[
...

Steps

  1. Install https://github.com/danieleades/mdbook-d2
  2. Clone https://github.com/nazar-pc/abundance/commits/0cc616fdcdc2e0275375ed9eae38686f660f1d72
  3. cd website/book
    1. mdbook serve
  4. See a bunch of warnings

Possible Solution(s)

I think the HTML parser should be updated so support inline SVG

Notes

No response

Version

v0.5.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: A bug, incorrect or unintended behavior

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions