baerrach / gatsby-remark-plantuml

Gatsby Remark parser for PlantUML code blocks
Other
3 stars 4 forks source link

Use DomUtils to find the svg element #6

Closed baerrach closed 4 years ago

baerrach commented 4 years ago

The code hacks finding the svg element by assuming its the first element in the dom array.

        const svgElement = dom[0]

See #5 as this will generate a different dom structure and so must locate it correctly.

Really need to use DomUtils.findOne with a correct predicate.

baerrach commented 4 years ago

Fixed by #15