Coder Social home page Coder Social logo

Comments (5)

martinlissmyr avatar martinlissmyr commented on July 26, 2024

Hi, thanks. I appreciate all contributions! However, I'm not sure if it makes sense to support this. What kind of document starts with a h2?

from markdown-it-table-of-contents.

GiridharanNarayanan avatar GiridharanNarayanan commented on July 26, 2024

@martinlissmyr , It is not a common case. We are just trying to cover all the cases possible. In wikis like in Git hub wiki, there is a separate title field which solves the purpose of the h1. So people start with h2 post that. We have seen similar cases in our wiki too. Folks start with h2 if there is a title field for the wiki page. I agree that this is not 80% scenario, but we would wish to not exclude this scenario. It is totally fine if we can get this as an optional behavior.

from markdown-it-table-of-contents.

martinlissmyr avatar martinlissmyr commented on July 26, 2024

Ok, I'll buy that... If you do a PR I'll accept it! 😄

from markdown-it-table-of-contents.

GiridharanNarayanan avatar GiridharanNarayanan commented on July 26, 2024

@martinlissmyr , I have created a PR : #27

from markdown-it-table-of-contents.

martinlissmyr avatar martinlissmyr commented on July 26, 2024

Fixed by #27

from markdown-it-table-of-contents.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.