Closed Kristinita closed 6 years ago
See any page from my site in Validator.nu. I get many warnings:
Warning: The name attribute is obsolete. Consider putting an id attribute on the nearest container instead.
It would be nice, if in MarkdownTOC name attribute will replace to non-obsolete.
name
See example solution.
Example MarkdownTOC.sublime-settings file:
MarkdownTOC.sublime-settings
{ "default_autoanchor": true, "default_autolink": true, "default_bracket": "round", "default_style": "ordered", }
Example SashaTOC.md file:
SashaTOC.md
# Sasha header --- ## Sasha subheader
I reproduce the problem in a version of Sublime Text without plugins and user settings.
I place carriage in beginning of SashaTOC.md file → Ctrl+Shift+P (⌘⇧p for Mac) → MarkdownTOC: Insert TOC.
MarkdownTOC: Insert TOC
<!-- MarkdownTOC --> 1. [**Sasha header**](#sasha-header) 1. [**Sasha subheader**](#sasha-subheader) <!-- /MarkdownTOC --> <a name="sasha-header"></a> # Sasha header <a name="sasha-subheader"></a> --- ## Sasha subheader
See example.
Thanks.
1. Summary
See any page from my site in Validator.nu. I get many warnings:
It would be nice, if in MarkdownTOC
name
attribute will replace to non-obsolete.See example solution.
2. Environment
Example
MarkdownTOC.sublime-settings
file:Example
SashaTOC.md
file:3. Steps to reproduce
I reproduce the problem in a version of Sublime Text without plugins and user settings.
I place carriage in beginning of
SashaTOC.md
file → Ctrl+Shift+P (⌘⇧p for Mac) →MarkdownTOC: Insert TOC
.4. Actual behavior
5. Expected behavior
See example.
Thanks.