<blockquote>
<p>I don't know precisely how Textadept's author did the conversion .md->.html</p>
</blockquote>
<p>It looks like a <a href="https://foicica.com/hg/textadept/file/b048357bd1be/doc/markdowndoc.lua" rel="nofollow">custom lua script</a> which uses Discount. Maybe it generates the TOC in there?</p>
<blockquote>
<p>I still think it would be useful (as even the example pages of specifications above illustrate) to have some kind of automatic support for making a TOC. What do you think?</p>
</blockquote>
<p>I agree TOC support would be useful, but if it's not part of the standard, and not part of the Markdown rendering library, then it's not going to be in the plugin. There's a pull request <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="326013926" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany-plugins/issues/747" href="https://github.com/geany/geany-plugins/pull/747">#747</a> to switch to using libcmark, so if you can get this feature added there, it will just work in the future.</p>
<blockquote>
<p>I have no idea where to get a "non-standard extension from some other Markdown renderer ". Why do you ask?</p>
</blockquote>
<p>I mean you're requesting a feature (TOC auto-generation) that is not part of any Markdown standard, but rather an extension provided by whatever other Markdown tool you got it from. It's quite common to get enhancement requests to add non-standard Markdown features where the poster assumes the feature is standard but it's just some custom extension (ex. Github markdown, StackOverflow markdown, etc). This plugin doesn't implement Markdown renderer/compiler by itself, it uses separate libraries to do it, so it's not really feasible to add any special extensions directly in this plugin.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/issues/771#issuecomment-419778373">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ4FBH-MdIHLHmY5CRug4NmfJf3rDks5uZd6ogaJpZM4WgHkb">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ6_W-eQAie6jw0TBpfGrl9F-Hbktks5uZd6ogaJpZM4WgHkb.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany-plugins","title":"geany/geany-plugins","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany-plugins"}},"updates":{"snippets":[{"icon":"PERSON","message":"@codebrainz in #771: \u003e I don't know precisely how Textadept's author did the conversion .md-\u003e.html\r\n\r\nIt looks like a [custom lua script](https://foicica.com/hg/textadept/file/b048357bd1be/doc/markdowndoc.lua) which uses Discount. Maybe it generates the TOC in there?\r\n\r\n\u003e  I still think it would be useful (as even the example pages of specifications above illustrate) to have some kind of automatic support for making a TOC. What do you think?\r\n\r\nI agree TOC support would be useful, but if it's not part of the standard, and not part of the Markdown rendering library, then it's not going to be in the plugin. There's a pull request #747 to switch to using libcmark, so if you can get this feature added there, it will just work in the future.\r\n\r\n\u003e I have no idea where to get a \"non-standard extension from some other Markdown renderer \". Why do you ask?\r\n\r\nI mean you're requesting a feature (TOC auto-generation) that is not part of any Markdown standard, but rather an extension provided by whatever other Markdown tool you got it from. It's quite common to get enhancement requests to add non-standard Markdown features where the poster assumes the feature is standard but it's just some custom extension (ex. Github markdown, StackOverflow markdown, etc). This plugin doesn't implement Markdown renderer/compiler by itself, it uses separate libraries to do it, so it's not really feasible to add any special extensions directly in this plugin."}],"action":{"name":"View Issue","url":"https://github.com/geany/geany-plugins/issues/771#issuecomment-419778373"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/issues/771#issuecomment-419778373",
"url": "https://github.com/geany/geany-plugins/issues/771#issuecomment-419778373",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [geany/geany-plugins] markdown: in html, generated TOC, the links are dead (#771)",
"sections": [
{
"text": "",
"activityTitle": "**Matthew Brush**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@codebrainz",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"geany/geany-plugins\",\n\"issueId\": 771,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany-plugins/issues/771#issuecomment-419778373"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 377518363\n}"
}
],
"themeColor": "26292E"
}
]</script>