diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-10-08 07:42:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-08 07:42:20 -0700 |
commit | 214ce8d33c11f75b3500212258f09b58b3d42e80 (patch) | |
tree | ca4ad3929ec2097f01649fa2a6a7a8e9a233b7b6 /scripts/lintdoc.lua | |
parent | 7737f892063ac716c6d94b4329df788cf268a719 (diff) | |
download | rneovim-214ce8d33c11f75b3500212258f09b58b3d42e80.tar.gz rneovim-214ce8d33c11f75b3500212258f09b58b3d42e80.tar.bz2 rneovim-214ce8d33c11f75b3500212258f09b58b3d42e80.zip |
fix(gen_help_html): first tag in h2 is broken #30720
Problem:
In h2 headings, the first tag points to an invalid anchor. This used to
work but regressed a few months ago, possibly related to
ceea6898a8bdcb6c4cfe06b8dc4739c144e6b1f8.
Solution:
- Simplify the logic, don't try to be clever:
- Always use to_heading_tag() for the h2 `id`.
- Also:
- Render tags as `<span>`, because `<code>` is unnecessary and doesn't
look great in headings.
- In the main h1, use "foo.txt" as the anchor `name` (rarely used),
prefer the next found tag for the `href`.
Diffstat (limited to 'scripts/lintdoc.lua')
0 files changed, 0 insertions, 0 deletions