{"action":"opened","issue":{"url":"https://api.github.com/repos/adrai/flowchart.js/issues/54","labels_url":"https://api.github.com/repos/adrai/flowchart.js/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/adrai/flowchart.js/issues/54/comments","events_url":"https://api.github.com/repos/adrai/flowchart.js/issues/54/events","html_url":"https://github.com/adrai/flowchart.js/issues/54","id":78103136,"number":54,"title":"Allow storing the flowchart data/code inside a div element.","user":{"login":"bwmarrin","id":7683654,"avatar_url":"https://avatars.githubusercontent.com/u/7683654?v=3","gravatar_id":"","url":"https://api.github.com/users/bwmarrin","html_url":"https://github.com/bwmarrin","followers_url":"https://api.github.com/users/bwmarrin/followers","following_url":"https://api.github.com/users/bwmarrin/following{/other_user}","gists_url":"https://api.github.com/users/bwmarrin/gists{/gist_id}","starred_url":"https://api.github.com/users/bwmarrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwmarrin/subscriptions","organizations_url":"https://api.github.com/users/bwmarrin/orgs","repos_url":"https://api.github.com/users/bwmarrin/repos","events_url":"https://api.github.com/users/bwmarrin/events{/privacy}","received_events_url":"https://api.github.com/users/bwmarrin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-19T14:07:45Z","updated_at":"2015-05-19T14:07:45Z","closed_at":null,"body":"It would be nice to store the text that flowchart parses within a div element. Then, you could just pull the innerHTML contents of that div to parse.  It would make using this library much easier.  I've tried to do this by pulling the contents of a div and passing that to flowchart but it complains\r\n\r\n```\r\nUncaught TypeError: Cannot read property 'key' of null  (Line 1205 flowchart.js)\r\n```\r\n\r\nI believe this is because the innerHTML doesn't actually have \\n line breaks.  Do you know of an easy way to implement this or could flowchart.js not require the line breaks?  Maybe have an alternate method to break lines such as a semicolon?\r\n"}}