We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7849b48 commit ffd4daeCopy full SHA for ffd4dae
2 files changed
src/parser/flowchart.ts
@@ -200,7 +200,7 @@ const parseSubGraph = (
200
201
// Get position
202
const el: SVGSVGElement | null = containerEl.querySelector(
203
- `[id='${data.id}']`
+ `[id*='${data.id}']`
204
);
205
if (!el) {
206
throw new Error("SubGraph element not found");
src/utils.ts
@@ -8,7 +8,9 @@ export const entityCodesToText = (input: string): string => {
8
// eg #9829; => ♥
9
const inputWithDecimalCode = input
10
.replace(/#(\d+);/g, "&#$1;")
11
- .replace(/#([a-z]+);/g, "&$1;");
+ .replace(/#([a-z]+);/g, "&$1;")
12
+ .replace(/\\n/g, "\n")
13
+ .replace(/<br\s*\/?>/gi, "\n");
14
15
// Render the decimal code as html character, eg ♥ => ♥
16
const element = document.createElement("textarea");
0 commit comments