mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 22:09:57 +02:00
Fix CSS cannot select number ID issue
This commit is contained in:
@@ -412,7 +412,7 @@ const render = function (id, txt, cb, container) {
|
||||
}`
|
||||
svg.insertBefore(style2, firstChild)
|
||||
|
||||
d3.select('#' + id).selectAll('foreignobject > *').attr('xmlns', 'http://www.w3.org/1999/xhtml')
|
||||
d3.select(`[id="${id}"]`).selectAll('foreignobject > *').attr('xmlns', 'http://www.w3.org/1999/xhtml')
|
||||
|
||||
let url = ''
|
||||
if (config.arrowMarkerAbsolute) {
|
||||
|
Reference in New Issue
Block a user