{"action":"created","issue":{"url":"https://api.github.com/repos/wooorm/remark/issues/258","repository_url":"https://api.github.com/repos/wooorm/remark","labels_url":"https://api.github.com/repos/wooorm/remark/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/wooorm/remark/issues/258/comments","events_url":"https://api.github.com/repos/wooorm/remark/issues/258/events","html_url":"https://github.com/wooorm/remark/issues/258","id":233152022,"number":258,"title":"What is linkReference actually ?","user":{"login":"paranoidjk","id":7971415,"avatar_url":"https://avatars0.githubusercontent.com/u/7971415?v=3","gravatar_id":"","url":"https://api.github.com/users/paranoidjk","html_url":"https://github.com/paranoidjk","followers_url":"https://api.github.com/users/paranoidjk/followers","following_url":"https://api.github.com/users/paranoidjk/following{/other_user}","gists_url":"https://api.github.com/users/paranoidjk/gists{/gist_id}","starred_url":"https://api.github.com/users/paranoidjk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paranoidjk/subscriptions","organizations_url":"https://api.github.com/users/paranoidjk/orgs","repos_url":"https://api.github.com/users/paranoidjk/repos","events_url":"https://api.github.com/users/paranoidjk/events{/privacy}","received_events_url":"https://api.github.com/users/paranoidjk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-02T11:15:26Z","updated_at":"2017-06-04T02:42:03Z","closed_at":"2017-06-04T02:42:03Z","body":"The original markdown is below:\r\n```md\r\n[ABC]\r\n```\r\nremark will parse it to: \r\n\r\n```js\r\n{\r\n  \"type\": \"root\",\r\n  \"children\": [\r\n    {\r\n      \"type\": \"paragraph\",\r\n      \"children\": [\r\n        {\r\n          \"type\": \"linkReference\",\r\n          \"identifier\": \"abc\",\r\n          \"referenceType\": \"shortcut\",\r\n          \"children\": [\r\n            {\r\n              \"type\": \"text\",\r\n              \"value\": \"ABC\",\r\n              \"position\": {\r\n                \"start\": {\r\n                  \"line\": 1,\r\n                  \"column\": 2,\r\n                  \"offset\": 1\r\n                },\r\n                \"end\": {\r\n                  \"line\": 1,\r\n                  \"column\": 5,\r\n                  \"offset\": 4\r\n                },\r\n                \"indent\": []\r\n              }\r\n            }\r\n          ],\r\n          \"position\": {\r\n            \"start\": {\r\n              \"line\": 1,\r\n              \"column\": 1,\r\n              \"offset\": 0\r\n            },\r\n            \"end\": {\r\n              \"line\": 1,\r\n              \"column\": 6,\r\n              \"offset\": 5\r\n            },\r\n            \"indent\": []\r\n          }\r\n        }\r\n      ],\r\n      \"position\": {\r\n        \"start\": {\r\n          \"line\": 1,\r\n          \"column\": 1,\r\n          \"offset\": 0\r\n        },\r\n        \"end\": {\r\n          \"line\": 1,\r\n          \"column\": 6,\r\n          \"offset\": 5\r\n        },\r\n        \"indent\": []\r\n      }\r\n    }\r\n  ],\r\n  \"position\": {\r\n    \"start\": {\r\n      \"line\": 1,\r\n      \"column\": 1,\r\n      \"offset\": 0\r\n    },\r\n    \"end\": {\r\n      \"line\": 1,\r\n      \"column\": 6,\r\n      \"offset\": 5\r\n    }\r\n  }\r\n}\r\n{\r\n  \"content\": [\r\n    \"article\",\r\n    [\r\n      \"p\",\r\n      \"[abc]\"\r\n    ]\r\n  ],\r\n  \"meta\": {}\r\n}\r\n```\r\n\r\nbut IMO, should `[ABC]` just be a plain text ?"},"comment":{"url":"https://api.github.com/repos/wooorm/remark/issues/comments/306013970","html_url":"https://github.com/wooorm/remark/issues/258#issuecomment-306013970","issue_url":"https://api.github.com/repos/wooorm/remark/issues/258","id":306013970,"user":{"login":"paranoidjk","id":7971415,"avatar_url":"https://avatars0.githubusercontent.com/u/7971415?v=3","gravatar_id":"","url":"https://api.github.com/users/paranoidjk","html_url":"https://github.com/paranoidjk","followers_url":"https://api.github.com/users/paranoidjk/followers","following_url":"https://api.github.com/users/paranoidjk/following{/other_user}","gists_url":"https://api.github.com/users/paranoidjk/gists{/gist_id}","starred_url":"https://api.github.com/users/paranoidjk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paranoidjk/subscriptions","organizations_url":"https://api.github.com/users/paranoidjk/orgs","repos_url":"https://api.github.com/users/paranoidjk/repos","events_url":"https://api.github.com/users/paranoidjk/events{/privacy}","received_events_url":"https://api.github.com/users/paranoidjk/received_events","type":"User","site_admin":false},"created_at":"2017-06-04T02:42:03Z","updated_at":"2017-06-04T02:42:03Z","body":"Even though i am much agree with https://github.com/wooorm/remark/issues/209#issuecomment-247794212, but i am ok with  current situation.\r\n\r\nI decided to handle linkReference  in our compiler. https://github.com/benjycui/mark-twain/pull/20/files\r\n\r\nThanks for your explanation."}}
{"actor":{"display_login":"paranoidjk"}}