Skip to content

Feature request: option to avoid closing "li" tag #3

Open

Description

@vazhnov

Could you add option to avoid </li> tag, please? For example, --no-li-end-tag.

From The HTML syntax:

An li element's end tag may be omitted if the li element is immediately followed by another li element or if there is no more content in the parent element.

For easy implementation, this new option can omit all </li> tags.

Activity

  1. changed the title [-]Future request: option to avoid closing "li" tag[/-] [+]Feature request: option to avoid closing "li" tag[/+] on Sep 3, 2018
  2. rubykat commented on Nov 5, 2020

    @rubykat
    Owner

    What is the use-case for this?

  3. vazhnov commented on Nov 5, 2020

    @vazhnov
    ContributorAuthor

    To create a Table of contents without </li>, which is a little more compact and still fits into standards.
    I use such ToC without </li> in my HTML cheat sheet, so after hypertoc I use VIM to remove all </li>:

    :%s/<\/li>//g
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions