{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":48559092,"defaultBranch":"main","name":"mdast","ownerLogin":"syntax-tree","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2015-12-24T23:12:36.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/24633385?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1687967556.0","currentOid":""},"activityList":{"items":[{"before":"1376ede0f9469d27de4dadbd640c54b04d1e2c73","after":"7831948163a318c534617c17f2cfdf50a8f84be0","ref":"refs/heads/main","pushedAt":"2023-06-28T15:52:34.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"wooorm","name":"Titus","path":"/wooorm","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/944406?s=80&v=4"},"commit":{"message":"5.0.0","shortMessageHtmlLink":"5.0.0"}},{"before":"f7df75ff3e6fd5c89d8d8d53a5a117974ef16f55","after":"1376ede0f9469d27de4dadbd640c54b04d1e2c73","ref":"refs/heads/main","pushedAt":"2023-06-28T15:44:02.000Z","pushType":"push","commitsCount":5,"pusher":{"login":"wooorm","name":"Titus","path":"/wooorm","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/944406?s=80&v=4"},"commit":{"message":"Remove `Footnote`","shortMessageHtmlLink":"Remove Footnote"}},{"before":"6cfdf00e081b173cc381e278d9b5e201a3ce3365","after":null,"ref":"refs/heads/remove-static-dynamic","pushedAt":"2023-06-15T10:37:42.385Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"wooorm","name":"Titus","path":"/wooorm","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/944406?s=80&v=4"}},{"before":"eace3f04a9518632ddaed59c9fdfe3620a0b7769","after":"f7df75ff3e6fd5c89d8d8d53a5a117974ef16f55","ref":"refs/heads/main","pushedAt":"2023-06-15T10:37:41.167Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"wooorm","name":"Titus","path":"/wooorm","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/944406?s=80&v=4"},"commit":{"message":"Remove static phrasing content\n\nPreviously, there was a difference between static and dynamic phrasing\r\ncontent.\r\nThere was also transparent content, to “inherit” the (static or dynamic)\r\ncontent model from a parent.\r\nThis was used to prohibit links in links.\r\n\r\nHowever, while it is unwise to put links in links, it is possible with\r\nmarkdown to do so, by embedding autolinks in links with resources or\r\nreferences.\r\nTake for example:\r\n\r\n```markdown\r\n[alpha charlie](delta)\r\n```\r\n\r\nYields, per CommonMark:\r\n\r\n```html\r\n

alpha https://bravo charlie

\r\n```\r\n\r\nSee also: https://github.com/commonmark/commonmark-spec/issues/719.\r\n\r\nThere is also the case where while it is unwise to author such markdown,\r\ntools transforming mdast might inject links.\r\nIt’s probably good to handle such cases in `mdast-util-to-markdown` and\r\nsuch?\r\n\r\nNot allowing links in links is also something imposed by HTML (particularly\r\nthe parsing side[^1]): perhaps mdast could be used in places where this\r\nrestriction doesn’t need to be imposed.\r\n\r\nFinally, it is hard to type such inherited content models.\r\nAs in, transparent content is not used in `@types/mdast` (I don’t think it\r\ncan be typed?):\r\n\r\nhttps://github.com/DefinitelyTyped/DefinitelyTyped/blob/3b052a3e5b59b0efaa22669d9bd8f268bd689835/types/mdast/index.d.ts#L286\r\n\r\nSo, this PR is a proposal to remove the difference and simplify the AST.\r\n\r\nCloses GH-42.\r\n\r\n[^1]: You can produce nested `a`s with the DOM:\r\n\r\n ```js\r\n let a1 = document.createElement('a'); a1.textContent = 'alpha';\r\n let a2 = document.createElement('a'); a2.textContent = 'bravo';\r\n a1.appendChild(a2)\r\n document.body.appendChild(a1)\r\n ```","shortMessageHtmlLink":"Remove static phrasing content"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAADSuOUqwA","startCursor":null,"endCursor":null}},"title":"Activity · syntax-tree/mdast"}