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 /runtime/doc | |
| 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 'runtime/doc')
| -rw-r--r-- | runtime/doc/nvim.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/doc/nvim.txt b/runtime/doc/nvim.txt index f8eba3f7f8..86e344c654 100644 --- a/runtime/doc/nvim.txt +++ b/runtime/doc/nvim.txt @@ -4,7 +4,7 @@ NVIM REFERENCE MANUAL -Nvim *neovim* *nvim* *nvim-intro* +Nvim *nvim* *neovim* *nvim-intro* Nvim is based on Vim by Bram Moolenaar. |