Potential bug of escaping double quotation in the markdown format

Not sure this is the right place to report.

There is potential bug of escaping double quotation in the markdown format.

See an example for from here: https://markdown-test.tiddlyhost.com/

The same content is working for type vnd.tiddlywiki, but not working for type markdown.

The content is js widget which contains json object.

<$htmlwidgets type="leaflet" uuid="htmlwidget-8ad96ff5f9c219b2aa6e" data="""{"x":{"options":{"crs":{"crsClass":"L.CRS.EPSG3857","code":null,"proj4def":null,"projectedBounds":null,"options":{}}},"calls":[{"method":"addTiles","args":["https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",null,null,{"minZoom":0,"maxZoom":18,"tileSize":256,"subdomains":"abc","errorTileUrl":"","tms":false,"noWrap":false,"zoomOffset":0,"zoomReverse":false,"opacity":1,"zIndex":1,"detectRetina":false,"attribution":"&copy; <a href=\"https://openstreetmap.org\">OpenStreetMap<\/a> contributors, <a href=\"https://creativecommons.org/licenses/by-sa/2.0/\">CC-BY-SA<\/a>"}]},{"method":"addMarkers","args":[-36.852,174.768,null,null,null,{"interactive":true,"draggable":false,"keyboard":true,"title":"","alt":"","zIndexOffset":0,"opacity":1,"riseOnHover":false,"riseOffset":250},"The birthplace of R",null,null,null,null,{"interactive":false,"permanent":false,"direction":"auto","opacity":1,"offset":[0,0],"textsize":"10px","textOnly":false,"className":"","sticky":true},null]}],"limits":{"lat":[-36.852,-36.852],"lng":[174.768,174.768]}},"evals":[],"jsHooks":[]}"""/>

After checking browsing development console, the error is related with this part of json scripts.

\"https://openstreetmap.org\"

In the vnd.tiddlywiki format, the text keeps the same as the original text.

However, in the markdown format, the slash is removed. The text is changed into

"https://openstreetmap.org"

Are there some special thing related with markdown?

I don’t know if it’s a bug or not, but a work-around is put all the data (between the triple quotes) into it’s own tiddler (e.g. data) and then use:

<$htmlwidgets type="leaflet" uuid="htmlwidget-8ad96ff5f9c219b2aa6e" data={{data}}/>

Now it works with markup.

Thanks @Mark_S

I just got a working around to replace double quotation into single quotation.