mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-11 11:29:42 +02:00
Fix CSS cannot select number ID issue
This commit is contained in:
@@ -307,7 +307,7 @@ export const draw = function (text, id) {
|
||||
logger.info('Rendering diagram ' + text)
|
||||
|
||||
/// / Fetch the default direction, use TD if none was found
|
||||
const diagram = d3.select('#' + id)
|
||||
const diagram = d3.select(`[id="${id}"]`)
|
||||
insertMarkers(diagram)
|
||||
|
||||
// Layout graph, Create a new directed graph
|
||||
|
Reference in New Issue
Block a user