mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-06 04:24:10 +01:00
#22 Basic Pie Chart
This commit is contained in:
@@ -40,6 +40,9 @@ export const detectType = function (text) {
|
||||
if (text.match(/^\s*info/)) {
|
||||
return 'info'
|
||||
}
|
||||
if (text.match(/^\s*pie/)) {
|
||||
return 'pie'
|
||||
}
|
||||
|
||||
return 'flowchart'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user