<p>Thanks for the answer.<br>
I was going to close this issue myself too, as I was mistaken when posting it.</p>
<p>The renderer / converter of this plugin sticks to commonMark spec. I personally think there would be nothing wrong with giving the users an option to "break" the Cmark standard by supporting some  tables or code-highlight syntax (that commonmark.org has very slow progress, if any, on these questions).<br>
But there are technical and time problems - I get it.</p>
<p>Still, the name of this plugin - <code>Markdown</code> - suggests that this plugin does not have to be restricted to converting to <code>html</code> only; and already, showing a live preview of the <code>html</code> is not something implemented by <a href="https://github.com/commonmark/cmark">Cmark</a> itself.</p>
<p>Instead, this plugin could, in principle, incorporate other extensions which have nothing to do with Markdown standard.<br>
One of them could be:</p>
<ul>
<li>an option to  generate a TOC inside the <code>.md</code> file, based on the headings in this file, and then also adding some anchor tags with <code>id</code> beside each heading. It could be done at a button click / shortcut key (i.e, does not have to be done live, like the preview), so that not to make it slower, if that's is a problem<br>
The job of the html previewer would remain as is.</li>
</ul>
<p>Does it make sense? I could open a separate issue for this if yes.</p>
<p>For my own use, I prepared a method involving a sequence of 9 (!) regex substitutions, plus couple of copy-paste, that, after all applied,  result getting a TOC in the .md file which is functional in the .html file. Obviously, a bit tedious.</p>
<p>I could share them if anyone else needs it.</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-419794813">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJyqKmwMXPneZULi5MU-Ruuj5MDZoks5uZf2agaJpZM4WgHkb">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJyHsbojjOEshlDzt711EU2KbSoGAks5uZf2agaJpZM4WgHkb.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":"@VictorelPetrovich in #771: Thanks for the answer.\r\n I was going to close this issue myself too, as I was mistaken when posting it.\r\n\r\nThe renderer / converter of this plugin sticks to commonMark spec. I personally think there would be nothing wrong with giving the users an option to \"break\" the Cmark standard by supporting some  tables or code-highlight syntax (that commonmark.org has very slow progress, if any, on these questions).  \r\nBut there are technical and time problems - I get it.\r\n\r\nStill, the name of this plugin - `Markdown` - suggests that this plugin does not have to be restricted to converting to `html` only; and already, showing a live preview of the `html` is not something implemented by [Cmark](https://github.com/commonmark/cmark) itself.\r\n\r\nInstead, this plugin could, in principle, incorporate other extensions which have nothing to do with Markdown standard.\r\nOne of them could be:\r\n- an option to  generate a TOC inside the `.md` file, based on the headings in this file, and then also adding some anchor tags with `id` beside each heading. It could be done at a button click / shortcut key (i.e, does not have to be done live, like the preview), so that not to make it slower, if that's is a problem\r\nThe job of the html previewer would remain as is.\r\n\r\nDoes it make sense? I could open a separate issue for this if yes.\r\n\r\nFor my own use, I prepared a method involving a sequence of 9 (!) regex substitutions, plus couple of copy-paste, that, after all applied,  result getting a TOC in the .md file which is functional in the .html file. Obviously, a bit tedious.\r\n\r\nI could share them if anyone else needs it. "}],"action":{"name":"View Issue","url":"https://github.com/geany/geany-plugins/issues/771#issuecomment-419794813"}}}</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-419794813",
"url": "https://github.com/geany/geany-plugins/issues/771#issuecomment-419794813",
"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": "**VictorelPetrovich**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@VictorelPetrovich",
"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-419794813"
}
],
"@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>