{"action":"created","comment":{"url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/pulls/comments/174024215","pull_request_review_id":103306028,"id":174024215,"diff_hunk":"@@ -0,0 +1,141 @@\n+---\n+RFC: \n+Author: Aditya Patwardhan\n+Status: Draft\n+SupercededBy: \n+Version: 0.1\n+Area: Formatting and Output\n+Comments Due: 03/26/2018\n+Plan to implement: Yes\n+---\n+\n+# Native Markdown Rendering\n+\n+Render markdown content on console to improve readability. \n+\n+## Motivation\n+\n+Markdown is a common authoring format used by the community.\n+There is no easy way in PowerShell to visualize a markdown document on console.\n+\n+## Specification\n+\n+This RFC proposes to use VT100 escape sequences to render markdown content.\n+`ConvertFrom-Markdown` cmdlet as part of `Microsoft.PowerShell.MarkdownRender` PowerShell module would consume a string or a file path and output a VT100 encoded string.\n+Optionally, the output can be formatted as HTML.\n+For converting strings to VT100 coded strings, we will be writing an extension to [markdig](https://github.com/lunet-io/markdig).\n+The extension will insert VT100 escape sequences as appropriate.\n+\n+```PowerShell\n+ConvertFrom-Markdown [-Path] <string[]> -AsHTML -AsPlainText  [<CommonParameters>]\n+\n+ConvertFrom-Markdown -LiteralPath <string[]> -AsHTML -AsPlainText  [<CommonParameters>]\n+\n+ConvertFrom-Markdown -InputObject <psobject> -AsHTML -AsPlainText  [<CommonParameters>]\n+```\n+\n+### Parameters\n+\n+- **Path** : Accepts an array of file paths with markdown content.\n+- **LiteralPath** : Accepts an array of literal paths with markdown content.\n+- **InputObject** : Accepts an InputObject of `System.IO.FileSystemInfo`, `string` type.\n+- **AsHTML** : When selected, the output will be HTML.\n+- **AsPlainText** : When selected, the output will be plain text.\n+\n+The default output will be a string encoded with VT100 escape sequences.\n+\n+## Supported Markdown Elements\n+\n+We will be supporting a limited set of markdown elements in the initial version.","path":"1-Draft/RFCNNNN-Native-Markdown-Rendering.md","position":49,"original_position":49,"commit_id":"03196bac46d8bb61a2e4de9570770799ce518ddc","original_commit_id":"03196bac46d8bb61a2e4de9570770799ce518ddc","user":{"login":"iSazonov","id":22290914,"avatar_url":"https://avatars2.githubusercontent.com/u/22290914?v=4","gravatar_id":"","url":"https://api.github.com/users/iSazonov","html_url":"https://github.com/iSazonov","followers_url":"https://api.github.com/users/iSazonov/followers","following_url":"https://api.github.com/users/iSazonov/following{/other_user}","gists_url":"https://api.github.com/users/iSazonov/gists{/gist_id}","starred_url":"https://api.github.com/users/iSazonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iSazonov/subscriptions","organizations_url":"https://api.github.com/users/iSazonov/orgs","repos_url":"https://api.github.com/users/iSazonov/repos","events_url":"https://api.github.com/users/iSazonov/events{/privacy}","received_events_url":"https://api.github.com/users/iSazonov/received_events","type":"User","site_admin":false},"body":"I agree if changing already implemented escapes will not be a breaking change.","created_at":"2018-03-13T06:07:58Z","updated_at":"2018-03-13T06:07:59Z","html_url":"https://github.com/PowerShell/PowerShell-RFC/pull/116#discussion_r174024215","pull_request_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/pulls/116","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShell-RFC/pulls/comments/174024215"},"html":{"href":"https://github.com/PowerShell/PowerShell-RFC/pull/116#discussion_r174024215"},"pull_request":{"href":"https://api.github.com/repos/PowerShell/PowerShell-RFC/pulls/116"}},"in_reply_to_id":172531398},"pull_request":{"url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/pulls/116","id":173039582,"html_url":"https://github.com/PowerShell/PowerShell-RFC/pull/116","diff_url":"https://github.com/PowerShell/PowerShell-RFC/pull/116.diff","patch_url":"https://github.com/PowerShell/PowerShell-RFC/pull/116.patch","issue_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/issues/116","number":116,"state":"open","locked":false,"title":"RFC for native markdown parsing on console","user":{"login":"adityapatwardhan","id":12820925,"avatar_url":"https://avatars0.githubusercontent.com/u/12820925?v=4","gravatar_id":"","url":"https://api.github.com/users/adityapatwardhan","html_url":"https://github.com/adityapatwardhan","followers_url":"https://api.github.com/users/adityapatwardhan/followers","following_url":"https://api.github.com/users/adityapatwardhan/following{/other_user}","gists_url":"https://api.github.com/users/adityapatwardhan/gists{/gist_id}","starred_url":"https://api.github.com/users/adityapatwardhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adityapatwardhan/subscriptions","organizations_url":"https://api.github.com/users/adityapatwardhan/orgs","repos_url":"https://api.github.com/users/adityapatwardhan/repos","events_url":"https://api.github.com/users/adityapatwardhan/events{/privacy}","received_events_url":"https://api.github.com/users/adityapatwardhan/received_events","type":"User","site_admin":false},"body":"<!--\r\n\r\nAll new RFCs should:\r\n\r\n* Not have a number - maintainers will assign the number\r\n* Be placed in the Draft folder\r\n\r\nMaintainers will sometimes need to make small edits (for example, set the RFC number).\r\nTo make this easier, we suggest giving maintainers permission to push to your fork,\r\nsee https://github.com/blog/2247-improving-collaboration-with-forks.\r\n\r\nAlso be sure to read https://github.com/PowerShell/PowerShell-RFC/blob/master/RFC0000-RFC-Process.md\r\n\r\n-->\r\n\r\n","created_at":"2018-03-06T02:09:49Z","updated_at":"2018-03-13T06:07:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"74c35178f57cf8406e89b4e163ee28c1af2b86bd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/pulls/116/commits","review_comments_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/pulls/116/comments","review_comment_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/issues/116/comments","statuses_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/statuses/03196bac46d8bb61a2e4de9570770799ce518ddc","head":{"label":"adityapatwardhan:MDRendering","ref":"MDRendering","sha":"03196bac46d8bb61a2e4de9570770799ce518ddc","user":{"login":"adityapatwardhan","id":12820925,"avatar_url":"https://avatars0.githubusercontent.com/u/12820925?v=4","gravatar_id":"","url":"https://api.github.com/users/adityapatwardhan","html_url":"https://github.com/adityapatwardhan","followers_url":"https://api.github.com/users/adityapatwardhan/followers","following_url":"https://api.github.com/users/adityapatwardhan/following{/other_user}","gists_url":"https://api.github.com/users/adityapatwardhan/gists{/gist_id}","starred_url":"https://api.github.com/users/adityapatwardhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adityapatwardhan/subscriptions","organizations_url":"https://api.github.com/users/adityapatwardhan/orgs","repos_url":"https://api.github.com/users/adityapatwardhan/repos","events_url":"https://api.github.com/users/adityapatwardhan/events{/privacy}","received_events_url":"https://api.github.com/users/adityapatwardhan/received_events","type":"User","site_admin":false},"repo":{"id":65857140,"name":"PowerShell-RFC","full_name":"adityapatwardhan/PowerShell-RFC","owner":{"login":"adityapatwardhan","id":12820925,"avatar_url":"https://avatars0.githubusercontent.com/u/12820925?v=4","gravatar_id":"","url":"https://api.github.com/users/adityapatwardhan","html_url":"https://github.com/adityapatwardhan","followers_url":"https://api.github.com/users/adityapatwardhan/followers","following_url":"https://api.github.com/users/adityapatwardhan/following{/other_user}","gists_url":"https://api.github.com/users/adityapatwardhan/gists{/gist_id}","starred_url":"https://api.github.com/users/adityapatwardhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adityapatwardhan/subscriptions","organizations_url":"https://api.github.com/users/adityapatwardhan/orgs","repos_url":"https://api.github.com/users/adityapatwardhan/repos","events_url":"https://api.github.com/users/adityapatwardhan/events{/privacy}","received_events_url":"https://api.github.com/users/adityapatwardhan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adityapatwardhan/PowerShell-RFC","description":"RFC documents for community feedback on design changes and improvements to PowerShell","fork":true,"url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC","forks_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/forks","keys_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/teams","hooks_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/hooks","issue_events_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/issues/events{/number}","events_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/events","assignees_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/assignees{/user}","branches_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/branches{/branch}","tags_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/tags","blobs_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/git/refs{/sha}","trees_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/statuses/{sha}","languages_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/languages","stargazers_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/stargazers","contributors_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/contributors","subscribers_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/subscribers","subscription_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/subscription","commits_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/commits{/sha}","git_commits_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/git/commits{/sha}","comments_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/comments{/number}","issue_comment_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/issues/comments{/number}","contents_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/contents/{+path}","compare_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/merges","archive_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/downloads","issues_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/issues{/number}","pulls_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/pulls{/number}","milestones_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/milestones{/number}","notifications_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/labels{/name}","releases_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/releases{/id}","deployments_url":"https://api.github.com/repos/adityapatwardhan/PowerShell-RFC/deployments","created_at":"2016-08-16T22:13:41Z","updated_at":"2016-06-19T20:08:36Z","pushed_at":"2018-03-06T02:06:18Z","git_url":"git://github.com/adityapatwardhan/PowerShell-RFC.git","ssh_url":"git@github.com:adityapatwardhan/PowerShell-RFC.git","clone_url":"https://github.com/adityapatwardhan/PowerShell-RFC.git","svn_url":"https://github.com/adityapatwardhan/PowerShell-RFC","homepage":"","size":282,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"PowerShell:master","ref":"master","sha":"a2b6fc606f75885210940eed9501c094edcf716c","user":{"login":"PowerShell","id":11524380,"avatar_url":"https://avatars3.githubusercontent.com/u/11524380?v=4","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"repo":{"id":39794651,"name":"PowerShell-RFC","full_name":"PowerShell/PowerShell-RFC","owner":{"login":"PowerShell","id":11524380,"avatar_url":"https://avatars3.githubusercontent.com/u/11524380?v=4","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PowerShell/PowerShell-RFC","description":"RFC documents for community feedback on design changes and improvements to PowerShell","fork":false,"url":"https://api.github.com/repos/PowerShell/PowerShell-RFC","forks_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/forks","keys_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/teams","hooks_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/hooks","issue_events_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/issues/events{/number}","events_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/events","assignees_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/assignees{/user}","branches_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/branches{/branch}","tags_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/tags","blobs_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/git/refs{/sha}","trees_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/statuses/{sha}","languages_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/languages","stargazers_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/stargazers","contributors_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/contributors","subscribers_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/subscribers","subscription_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/subscription","commits_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/commits{/sha}","git_commits_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/git/commits{/sha}","comments_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/comments{/number}","issue_comment_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/issues/comments{/number}","contents_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/contents/{+path}","compare_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/merges","archive_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/downloads","issues_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/issues{/number}","pulls_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/pulls{/number}","milestones_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/milestones{/number}","notifications_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/labels{/name}","releases_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/releases{/id}","deployments_url":"https://api.github.com/repos/PowerShell/PowerShell-RFC/deployments","created_at":"2015-07-27T19:52:09Z","updated_at":"2018-03-12T15:43:36Z","pushed_at":"2018-03-12T19:48:54Z","git_url":"git://github.com/PowerShell/PowerShell-RFC.git","ssh_url":"git@github.com:PowerShell/PowerShell-RFC.git","clone_url":"https://github.com/PowerShell/PowerShell-RFC.git","svn_url":"https://github.com/PowerShell/PowerShell-RFC","homepage":"","size":265,"stargazers_count":101,"watchers_count":101,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"archived":false,"open_issues_count":34,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":56,"open_issues":34,"watchers":101,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShell-RFC/pulls/116"},"html":{"href":"https://github.com/PowerShell/PowerShell-RFC/pull/116"},"issue":{"href":"https://api.github.com/repos/PowerShell/PowerShell-RFC/issues/116"},"comments":{"href":"https://api.github.com/repos/PowerShell/PowerShell-RFC/issues/116/comments"},"review_comments":{"href":"https://api.github.com/repos/PowerShell/PowerShell-RFC/pulls/116/comments"},"review_comment":{"href":"https://api.github.com/repos/PowerShell/PowerShell-RFC/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PowerShell/PowerShell-RFC/pulls/116/commits"},"statuses":{"href":"https://api.github.com/repos/PowerShell/PowerShell-RFC/statuses/03196bac46d8bb61a2e4de9570770799ce518ddc"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"iSazonov"}}