mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-21 16:29:40 +02:00
Using diagram api to add gitGraph
This commit is contained in:
8
src/diagrams/git/gitGraphDetector.js
Normal file
8
src/diagrams/git/gitGraphDetector.js
Normal file
@@ -0,0 +1,8 @@
|
||||
const detector = (txt) => {
|
||||
if (txt.match(/^\s*gitGraph/)) {
|
||||
return 'gitGraph';
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
export default detector;
|
Reference in New Issue
Block a user