mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Revert flowchart change
This commit is contained in:
parent
4619ff2ad0
commit
36be8114d0
@ -13,7 +13,7 @@ const diagramMatchers: Record<string, RegExp> = {
|
|||||||
gantt: /^\s*gantt/,
|
gantt: /^\s*gantt/,
|
||||||
classDiagram: /^\s*classDiagram-v2/,
|
classDiagram: /^\s*classDiagram-v2/,
|
||||||
stateDiagram: /^\s*stateDiagram-v2/,
|
stateDiagram: /^\s*stateDiagram-v2/,
|
||||||
'flowchart-v2': /^\s*flowchart/,
|
'flowchart-v2': /^\s*flowchart/, // Might need to add |graph to fix #3391
|
||||||
info: /^\s*info/,
|
info: /^\s*info/,
|
||||||
pie: /^\s*pie/,
|
pie: /^\s*pie/,
|
||||||
er: /^\s*erDiagram/,
|
er: /^\s*erDiagram/,
|
||||||
@ -72,8 +72,9 @@ export const detectType = function (text: string, config?: MermaidConfig): strin
|
|||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// TODO: #3391
|
||||||
throw new Error(`No diagram type detected for text: ${text}`);
|
// throw new Error(`No diagram type detected for text: ${text}`);
|
||||||
|
return 'flowchart';
|
||||||
};
|
};
|
||||||
|
|
||||||
export const addDetector = (key: string, detector: DiagramDetector) => {
|
export const addDetector = (key: string, detector: DiagramDetector) => {
|
||||||
|
@ -33,12 +33,6 @@ const themes = {
|
|||||||
c4,
|
c4,
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: Delete as it's not used
|
|
||||||
// export const calcThemeVariables = (theme: string, userOverRides) => {
|
|
||||||
// log.info('userOverides', userOverRides);
|
|
||||||
// return theme.calcColors(userOverRides);
|
|
||||||
// };
|
|
||||||
|
|
||||||
const getStyles = (
|
const getStyles = (
|
||||||
type: string,
|
type: string,
|
||||||
userStyles: string,
|
userStyles: string,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user