{"action":"created","issue":{"url":"https://api.github.com/repos/ome/figure/issues/158","repository_url":"https://api.github.com/repos/ome/figure","labels_url":"https://api.github.com/repos/ome/figure/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/ome/figure/issues/158/comments","events_url":"https://api.github.com/repos/ome/figure/issues/158/events","html_url":"https://github.com/ome/figure/pull/158","id":166068732,"number":158,"title":"Label markdown","user":{"login":"dominikl","id":6575139,"avatar_url":"https://avatars.githubusercontent.com/u/6575139?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikl","html_url":"https://github.com/dominikl","followers_url":"https://api.github.com/users/dominikl/followers","following_url":"https://api.github.com/users/dominikl/following{/other_user}","gists_url":"https://api.github.com/users/dominikl/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikl/subscriptions","organizations_url":"https://api.github.com/users/dominikl/orgs","repos_url":"https://api.github.com/users/dominikl/repos","events_url":"https://api.github.com/users/dominikl/events{/privacy}","received_events_url":"https://api.github.com/users/dominikl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-18T11:01:28Z","updated_at":"2016-07-29T08:36:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ome/figure/pulls/158","html_url":"https://github.com/ome/figure/pull/158","diff_url":"https://github.com/ome/figure/pull/158.diff","patch_url":"https://github.com/ome/figure/pull/158.patch"},"body":"Enables markdown for Labels, see [Trello - Labels italics](https://trello.com/c/BNjiEiAZ/46-labels-italics)\r\n\r\n**Test**: Add a markdown formatted Label to a figure and check that it gets rendered correctly. Also make sure the Labels panel shows a link to the markdown help dialog and check that it does work.\r\n"},"comment":{"url":"https://api.github.com/repos/ome/figure/issues/comments/236125569","html_url":"https://github.com/ome/figure/pull/158#issuecomment-236125569","issue_url":"https://api.github.com/repos/ome/figure/issues/158","id":236125569,"user":{"login":"will-moore","id":900055,"avatar_url":"https://avatars.githubusercontent.com/u/900055?v=3","gravatar_id":"","url":"https://api.github.com/users/will-moore","html_url":"https://github.com/will-moore","followers_url":"https://api.github.com/users/will-moore/followers","following_url":"https://api.github.com/users/will-moore/following{/other_user}","gists_url":"https://api.github.com/users/will-moore/gists{/gist_id}","starred_url":"https://api.github.com/users/will-moore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-moore/subscriptions","organizations_url":"https://api.github.com/users/will-moore/orgs","repos_url":"https://api.github.com/users/will-moore/repos","events_url":"https://api.github.com/users/will-moore/events{/privacy}","received_events_url":"https://api.github.com/users/will-moore/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T08:36:53Z","updated_at":"2016-07-29T08:36:53Z","body":"I stared looking at how to handle markdown & html in Panel labels for PDF export in https://github.com/will-moore/figure/commit/e483c73299f3afe45b0d9345ab5b7ae16260e577\r\n\r\nTurns out this is harder than I thought, and I'm not even sure we can handle it for TIFF export.\r\n\r\nSome issues: We need to use a ```Paragraph()``` to handle html instead of just writing text to page.\r\nSome more work is needed setting up the style with font size and color. \r\nIt seems we need to call ```wrap()``` on the paragraph before writing to page. This gives us the width needed to place the paragraph with correct alignment. However, when we wrap() using the full pageWidth, the width returned is also the full page width, so the alignment is screwed.\r\nSee Chapter 6 of https://www.reportlab.com/docs/reportlab-userguide.pdf\r\n\r\nNot sure what to do about TIFF export..."}}
{"actor":{"display_login":"will-moore"}}