Created
March 6, 2015 20:08
-
-
Save bollwyvl/7b4729c21b3d1ad4c31e to your computer and use it in GitHub Desktop.
Mermaid RequireJS Experiments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"nbformat_minor": 0, "cells": [{"source": "<div class=\"mermaid\">\n %% Example diagram\n graph LR\n A[Square Rect] -- Link text --> B((Circle))\n A --> C(Round Rect)\n B --> D{Rhombus}\n C --> D\n</div>", "cell_type": "markdown", "metadata": {}}, {"execution_count": 2, "cell_type": "code", "source": "%%javascript\nrequire([\"https://cdn.rawgit.com/knsv/mermaid/0.3.0/dist/mermaid.full.js\"], function(mermaid){\n console.log(mermaid)\n})", "outputs": [{"output_type": "display_data", "data": {"application/javascript": "require([\"https://cdn.rawgit.com/knsv/mermaid/0.3.0/dist/mermaid.full.js\"], function(mermaid){\n console.log(mermaid)\n})", "text/plain": "<IPython.core.display.Javascript object>"}, "metadata": {}}], "metadata": {"collapsed": false, "trusted": true}}], "nbformat": 4, "metadata": {"kernelspec": {"display_name": "Python 2", "name": "python2", "language": "python"}, "language_info": {"mimetype": "text/x-python", "nbconvert_exporter": "python", "version": "2.7.3", "name": "python", "file_extension": ".py", "pygments_lexer": "ipython2", "codemirror_mode": {"version": 2, "name": "ipython"}}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment