{"action":"created","issue":{"url":"https://api.github.com/repos/knsv/mermaid/issues/185","labels_url":"https://api.github.com/repos/knsv/mermaid/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/knsv/mermaid/issues/185/comments","events_url":"https://api.github.com/repos/knsv/mermaid/issues/185/events","html_url":"https://github.com/knsv/mermaid/issues/185","id":94175310,"number":185,"title":"using mermaid with laravel","user":{"login":"barttt","id":13264066,"avatar_url":"https://avatars.githubusercontent.com/u/13264066?v=3","gravatar_id":"","url":"https://api.github.com/users/barttt","html_url":"https://github.com/barttt","followers_url":"https://api.github.com/users/barttt/followers","following_url":"https://api.github.com/users/barttt/following{/other_user}","gists_url":"https://api.github.com/users/barttt/gists{/gist_id}","starred_url":"https://api.github.com/users/barttt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barttt/subscriptions","organizations_url":"https://api.github.com/users/barttt/orgs","repos_url":"https://api.github.com/users/barttt/repos","events_url":"https://api.github.com/users/barttt/events{/privacy}","received_events_url":"https://api.github.com/users/barttt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-09T23:33:05Z","updated_at":"2015-07-10T16:39:20Z","closed_at":"2015-07-10T16:30:15Z","body":"Not sure how to address this problem\r\nI am trying to use mermaid with a laravel view page. It seems to be trying to work but I cannot get rid of an error that causes the rendering to fail. I used bower to install mermaid and use this div:\r\n\t\t\t\t\t<div class=\"mermaid\">\r\n\t\t\t\t\tgraph TD; \r\n\t\t\t\t\tsq[Square shape]-->di{Diamond}; \r\n\t\t\t\t\tdi-->A; \r\n\t\t\t\t\tC-->di; \r\n\t\t\t\t\tA-->C; \r\n\t\t\t\t\tB-->C; \r\n\t\t\t\t\tC-->ro2(Rounded square shape); \r\n\t\t\t\t\t</div>\r\n\r\nThe stack looks like this:\r\n\r\n[105]</module.exports.cloneCssStyles()mermaid.js (line 32075)\r\n[104]</</render(id=\"mermaidChart0\", txt=\"graph TD; \\n sq[Squar...(Rounded square shape);\", cb=function(svgCode), container=div.mermaid)mermaid.js (line 31907)\r\n[104]</</exports.render(id=\"mermaidChart0\", text=\"graph TD; \\n sq[Squar...(Rounded square shape);\", cb=function(svgCode), containerElement=div.mermaid)mermaid.js (line 31959)\r\n[103]</</init()mermaid.js (line 31635)\r\n[103]</</global.mermaid.init(sequenceConfig=undefined, nodes=undefined)mermaid.js (line 31670)\r\n[103]</</exports.contentLoaded()mermaid.js (line 31712)\r\n[103]</</<()mermaid.js (line 31732)\r\n\r\nAnd the error reads \"rule is undefined\" on the line in question.\r\nCan anyone help me out with a solution?\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/knsv/mermaid/issues/comments/120454821","html_url":"https://github.com/knsv/mermaid/issues/185#issuecomment-120454821","issue_url":"https://api.github.com/repos/knsv/mermaid/issues/185","id":120454821,"user":{"login":"barttt","id":13264066,"avatar_url":"https://avatars.githubusercontent.com/u/13264066?v=3","gravatar_id":"","url":"https://api.github.com/users/barttt","html_url":"https://github.com/barttt","followers_url":"https://api.github.com/users/barttt/followers","following_url":"https://api.github.com/users/barttt/following{/other_user}","gists_url":"https://api.github.com/users/barttt/gists{/gist_id}","starred_url":"https://api.github.com/users/barttt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barttt/subscriptions","organizations_url":"https://api.github.com/users/barttt/orgs","repos_url":"https://api.github.com/users/barttt/repos","events_url":"https://api.github.com/users/barttt/events{/privacy}","received_events_url":"https://api.github.com/users/barttt/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T16:39:20Z","updated_at":"2015-07-10T16:39:20Z","body":"Hi Knut-\r\nThanks for the reply..\r\nI tried your suggestion. But the results were the same.\r\nIt occurred to me that perhaps the blade engine in laravel was causing some grief, so I renamed the file from welcome.blade.php to welcome.php, but that is not helping either. I have attached the web page text in case it can shed any light on this..\r\n\r\nThanks for any help\r\n\r\n----------------------------------------\r\nBart Thompson\r\nSoftware Engineer\r\nAlpha Research & Technology\r\n----------------------------------------\r\n\r\nFrom: Knut Sveidqvist [mailto:notifications@github.com]\r\nSent: Friday, July 10, 2015 1:47 AM\r\nTo: knsv/mermaid\r\nCc: Bart Thompson\r\nSubject: Re: [mermaid] using mermaid with laravel (#185)\r\n\r\nThe problem comes when trying to close the css rules it seems. Try\r\ndisabling the css cloning and see if that helps. With the 0.5.x version of\r\nmermaid that can be done.\r\n\r\nex:\r\nmermaid.initialize({mermaid:{cloneCssStyles: false}});\r\n\r\nOn Fri, Jul 10, 2015 at 1:33 AM, barttt <notifications@github.com> wrote:\r\n\r\n> Not sure how to address this problem\r\n> I am trying to use mermaid with a laravel view page. It seems to be trying\r\n> to work but I cannot get rid of an error that causes the rendering to fail.\r\n> I used bower to install mermaid and use this div:\r\n>\r\n> graph TD;\r\n> sq[Square shape]-->di{Diamond};\r\n> di-->A;\r\n> C-->di;\r\n> A-->C;\r\n> B-->C;\r\n> C-->ro2(Rounded square shape);\r\n>\r\n> The stack looks like this:\r\n>\r\n> [105]</module.exports.cloneCssStyles()mermaid.js (line 32075)\r\n> [104]</</render(id=\"mermaidChart0\", txt=\"graph TD; \\n sq[Squar...(Rounded\r\n> square shape);\", cb=function(svgCode), container=div.mermaid)mermaid.js\r\n> (line 31907)\r\n> [104]</</exports.render(id=\"mermaidChart0\", text=\"graph TD; \\n\r\n> sq[Squar...(Rounded square shape);\", cb=function(svgCode),\r\n> containerElement=div.mermaid)mermaid.js (line 31959)\r\n> [103]</</init()mermaid.js (line 31635)\r\n> [103]</</global.mermaid.init(sequenceConfig=undefined,\r\n> nodes=undefined)mermaid.js (line 31670)\r\n> [103]</</exports.contentLoaded()mermaid.js (line 31712)\r\n> [103]</</<()mermaid.js (line 31732)\r\n>\r\n> And the error reads \"rule is undefined\" on the line in question.\r\n> Can anyone help me out with a solution?\r\n> Thanks\r\n>\r\n> —\r\n> Reply to this email directly or view it on GitHub\r\n> <https://github.com/knsv/mermaid/issues/185>.\r\n>\r\n\r\n\r\n—\r\nReply to this email directly or view it on GitHub<https://github.com/knsv/mermaid/issues/185#issuecomment-120303145>.\r\n\r\nWARNING – This email may contain Privileged, Proprietary and/or Competition-Sensitive Data, intended for the sole use of the intended recipient of this email. This communication may also contain data subject to U.S. export laws, and which may not be releasable to Foreign Persons unless authorized by 22 CFR 120-130 or 15.CFR 730-774. If so, that data may also be subject to the International Traffic in Arms Regulation and cannot be disseminated, distributed or copied to foreign nationals, residing in the U.S. or abroad, absent the express prior approval of the U.S. Department of State. If you are not the intended recipient of this email, or have received this email in error, please notify the sender by reply e-mail and destroy the e-mail message and any physical copies made of the communication. If you are not the intended recipient, dissemination, distribution or copying of this communication may be strictly prohibited by other applicable laws. Thank you.\r\n"}}