fedwiki / wiki

Federated Wiki - node server as npm package
https://npmjs.org/package/wiki
Other
341 stars 74 forks source link

Testing Graph Plugin [ParseError] #131

Closed cliveb closed 4 years ago

cliveb commented 4 years ago

We fancied dropping animated SVG into our wiki page. We found the GraphViz plugin installed on our server instance and used it. Alas, svg image failed to render. We searched Fedwiki for the Graph Plugin and found we could fork a page and render svg fine. Yet when we create a new page using svg assets from the forked page the svg fails to render. We used chrome dev tools to inspect the page, and see the svg is available rendered, yet our new page fails with message:

test 1 new lottie svg 'error on line 1 at column 1: Extra content at the end of the document'

test 2 forked graph svg 'error on line 1 at column 1: Extra content at the end of the document'

test 3 simple svg test by FedWiki
syntax error in line 1 near 'Welcome'

Our wiki page: http://clive.tries.fed.wiki/view/lottie-svg-animations

Related to testing we found RawGit has reached the end of its useful life and replaced with jsDelivr See page ToDo http://clive.tries.fed.wiki/view/graph-plugin

WardCunningham commented 4 years ago

We're sympathetic with your desire to employ SVG features within a wiki page. We've yet found a way to do so without exposing readers to malicious javascript.

Here is what we do have:

Both @dobbs and David Bovill have experimented with adding a plugin that would display any SVG. They might have something that could work on a private site where they trust every page they show.