{"action":"created","issue":{"url":"https://api.github.com/repos/BernieWhite/PSDocs/issues/11","repository_url":"https://api.github.com/repos/BernieWhite/PSDocs","labels_url":"https://api.github.com/repos/BernieWhite/PSDocs/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/BernieWhite/PSDocs/issues/11/comments","events_url":"https://api.github.com/repos/BernieWhite/PSDocs/issues/11/events","html_url":"https://github.com/BernieWhite/PSDocs/issues/11","id":323460677,"number":11,"title":"Table does not escape column line breaks","user":{"login":"Normvariante","id":38213115,"avatar_url":"https://avatars1.githubusercontent.com/u/38213115?v=4","gravatar_id":"","url":"https://api.github.com/users/Normvariante","html_url":"https://github.com/Normvariante","followers_url":"https://api.github.com/users/Normvariante/followers","following_url":"https://api.github.com/users/Normvariante/following{/other_user}","gists_url":"https://api.github.com/users/Normvariante/gists{/gist_id}","starred_url":"https://api.github.com/users/Normvariante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Normvariante/subscriptions","organizations_url":"https://api.github.com/users/Normvariante/orgs","repos_url":"https://api.github.com/users/Normvariante/repos","events_url":"https://api.github.com/users/Normvariante/events{/privacy}","received_events_url":"https://api.github.com/users/Normvariante/received_events","type":"User","site_admin":false},"labels":[{"id":668795191,"url":"https://api.github.com/repos/BernieWhite/PSDocs/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"BernieWhite","id":13513058,"avatar_url":"https://avatars0.githubusercontent.com/u/13513058?v=4","gravatar_id":"","url":"https://api.github.com/users/BernieWhite","html_url":"https://github.com/BernieWhite","followers_url":"https://api.github.com/users/BernieWhite/followers","following_url":"https://api.github.com/users/BernieWhite/following{/other_user}","gists_url":"https://api.github.com/users/BernieWhite/gists{/gist_id}","starred_url":"https://api.github.com/users/BernieWhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BernieWhite/subscriptions","organizations_url":"https://api.github.com/users/BernieWhite/orgs","repos_url":"https://api.github.com/users/BernieWhite/repos","events_url":"https://api.github.com/users/BernieWhite/events{/privacy}","received_events_url":"https://api.github.com/users/BernieWhite/received_events","type":"User","site_admin":false},"assignees":[{"login":"BernieWhite","id":13513058,"avatar_url":"https://avatars0.githubusercontent.com/u/13513058?v=4","gravatar_id":"","url":"https://api.github.com/users/BernieWhite","html_url":"https://github.com/BernieWhite","followers_url":"https://api.github.com/users/BernieWhite/followers","following_url":"https://api.github.com/users/BernieWhite/following{/other_user}","gists_url":"https://api.github.com/users/BernieWhite/gists{/gist_id}","starred_url":"https://api.github.com/users/BernieWhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BernieWhite/subscriptions","organizations_url":"https://api.github.com/users/BernieWhite/orgs","repos_url":"https://api.github.com/users/BernieWhite/repos","events_url":"https://api.github.com/users/BernieWhite/events{/privacy}","received_events_url":"https://api.github.com/users/BernieWhite/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/BernieWhite/PSDocs/milestones/2","html_url":"https://github.com/BernieWhite/PSDocs/milestone/2","labels_url":"https://api.github.com/repos/BernieWhite/PSDocs/milestones/2/labels","id":3350898,"number":2,"title":"v0.3.1","description":"","creator":{"login":"BernieWhite","id":13513058,"avatar_url":"https://avatars0.githubusercontent.com/u/13513058?v=4","gravatar_id":"","url":"https://api.github.com/users/BernieWhite","html_url":"https://github.com/BernieWhite","followers_url":"https://api.github.com/users/BernieWhite/followers","following_url":"https://api.github.com/users/BernieWhite/following{/other_user}","gists_url":"https://api.github.com/users/BernieWhite/gists{/gist_id}","starred_url":"https://api.github.com/users/BernieWhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BernieWhite/subscriptions","organizations_url":"https://api.github.com/users/BernieWhite/orgs","repos_url":"https://api.github.com/users/BernieWhite/repos","events_url":"https://api.github.com/users/BernieWhite/events{/privacy}","received_events_url":"https://api.github.com/users/BernieWhite/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2018-05-16T07:30:48Z","updated_at":"2018-05-22T23:07:24Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2018-05-16T03:58:00Z","updated_at":"2018-05-23T00:12:33Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI noticed that if I convert an object that has a string with a line break in one of its properties, the line break is not escaped when converting it to a md table.\r\n\r\n    $HasNewline = @\"\r\n    One, Two,\r\n    Three\r\n    \"@\r\n\r\n    $Object = [PsCustomObject] @{\r\n\r\n        String1 = \"1 2 3 4 5\"\r\n        String2 = $HasNewline\r\n        String3 = \"6 7 8 9 0\"\r\n\r\n    }\r\n\r\n    Document Sample {\r\n\r\n        $Object | Table\r\n   \r\n    }\r\n\r\n    Invoke-PSDocument -Name 'Sample' -PassThru\r\n\r\nThe result is\r\n\r\n    |String1|String2|String3|\r\n    | --- | --- | --- |\r\n    |1 2 3 4 5|One, Two,\r\n    Three|6 7 8 9 0|\r\n\r\nWhich breaks the table if I render the markdown as HTML. The new lines should be escaped with `<br>` or `\\`"},"comment":{"url":"https://api.github.com/repos/BernieWhite/PSDocs/issues/comments/391180308","html_url":"https://github.com/BernieWhite/PSDocs/issues/11#issuecomment-391180308","issue_url":"https://api.github.com/repos/BernieWhite/PSDocs/issues/11","id":391180308,"user":{"login":"BernieWhite","id":13513058,"avatar_url":"https://avatars0.githubusercontent.com/u/13513058?v=4","gravatar_id":"","url":"https://api.github.com/users/BernieWhite","html_url":"https://github.com/BernieWhite","followers_url":"https://api.github.com/users/BernieWhite/followers","following_url":"https://api.github.com/users/BernieWhite/following{/other_user}","gists_url":"https://api.github.com/users/BernieWhite/gists{/gist_id}","starred_url":"https://api.github.com/users/BernieWhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BernieWhite/subscriptions","organizations_url":"https://api.github.com/users/BernieWhite/orgs","repos_url":"https://api.github.com/users/BernieWhite/repos","events_url":"https://api.github.com/users/BernieWhite/events{/privacy}","received_events_url":"https://api.github.com/users/BernieWhite/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T00:12:33Z","updated_at":"2018-05-23T00:12:33Z","author_association":"OWNER","body":"@Normvariante You are correct. The wrapping should have been limited, but I found a logic error that gave it a greater scope then intended. If you have an example that you know fails that would be helpful so that I can build a unit test to prevent regression."}}
{"actor":{"display_login":"BernieWhite"}}