{"action":"created","issue":{"url":"https://api.github.com/repos/ralfstuckert/pdfbox-layout/issues/43","repository_url":"https://api.github.com/repos/ralfstuckert/pdfbox-layout","labels_url":"https://api.github.com/repos/ralfstuckert/pdfbox-layout/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/ralfstuckert/pdfbox-layout/issues/43/comments","events_url":"https://api.github.com/repos/ralfstuckert/pdfbox-layout/issues/43/events","html_url":"https://github.com/ralfstuckert/pdfbox-layout/issues/43","id":266074248,"number":43,"title":"Escape markup / control characters","user":{"login":"andrewvsk","id":32568147,"avatar_url":"https://avatars0.githubusercontent.com/u/32568147?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewvsk","html_url":"https://github.com/andrewvsk","followers_url":"https://api.github.com/users/andrewvsk/followers","following_url":"https://api.github.com/users/andrewvsk/following{/other_user}","gists_url":"https://api.github.com/users/andrewvsk/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewvsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewvsk/subscriptions","organizations_url":"https://api.github.com/users/andrewvsk/orgs","repos_url":"https://api.github.com/users/andrewvsk/repos","events_url":"https://api.github.com/users/andrewvsk/events{/privacy}","received_events_url":"https://api.github.com/users/andrewvsk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-17T10:33:02Z","updated_at":"2017-10-28T06:57:03Z","closed_at":null,"author_association":"NONE","body":"It would be nice to have a helper function for escaping markup characters in string. \r\n\r\nFor example if text is dynamically created or stored in DB and contains special symbols (_, *. \\n..) which shouldn't be rendered but at the same time could have color.\r\n\r\nThe workaround is to  create manually each element: new StyledText(), new NewLine()...\r\n"},"comment":{"url":"https://api.github.com/repos/ralfstuckert/pdfbox-layout/issues/comments/340150198","html_url":"https://github.com/ralfstuckert/pdfbox-layout/issues/43#issuecomment-340150198","issue_url":"https://api.github.com/repos/ralfstuckert/pdfbox-layout/issues/43","id":340150198,"user":{"login":"andrewvsk","id":32568147,"avatar_url":"https://avatars0.githubusercontent.com/u/32568147?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewvsk","html_url":"https://github.com/andrewvsk","followers_url":"https://api.github.com/users/andrewvsk/followers","following_url":"https://api.github.com/users/andrewvsk/following{/other_user}","gists_url":"https://api.github.com/users/andrewvsk/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewvsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewvsk/subscriptions","organizations_url":"https://api.github.com/users/andrewvsk/orgs","repos_url":"https://api.github.com/users/andrewvsk/repos","events_url":"https://api.github.com/users/andrewvsk/events{/privacy}","received_events_url":"https://api.github.com/users/andrewvsk/received_events","type":"User","site_admin":false},"created_at":"2017-10-28T06:57:03Z","updated_at":"2017-10-28T06:57:03Z","author_association":"NONE","body":"Yes, it is only one way now:\r\n```java\r\nparagraph.add(new StyledText(text, size, font, color)); \r\nparagraph.add(new NewLine());\r\n```\r\n\r\n\r\n"}}
{"actor":{"display_login":"andrewvsk"}}