mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-06 00:56:42 +02:00
Set version to 0.5.6
Removed logging One more iteration in handling of parser API
This commit is contained in:
27
test/examples/apiTest.html
Normal file
27
test/examples/apiTest.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
|
||||
<script src="dist/mermaidAPI.js"></script>
|
||||
|
||||
<script>
|
||||
mermaidAPI.initialize({
|
||||
startOnLoad:true,
|
||||
logLevel:2
|
||||
});
|
||||
$(function(){
|
||||
var graphDefinition = 'graph TB\na-->b';
|
||||
// var cb = function(html){
|
||||
// console.log(html);
|
||||
// }
|
||||
console.log(mermaidAPI.render(graphDefinition));
|
||||
console.log(mermaidAPI.render('id',graphDefinition));
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user