Giter VIP home page Giter VIP logo

Comments (3)

ardumont avatar ardumont commented on July 24, 2024

Hello, sorry for the delay.

Indeed.

from markdown-toc.

ardumont avatar ardumont commented on July 24, 2024

Well,

just to let you know, the problem is upstream...

The data-structure, created by the function markdown-imenu-create-index (from
markdown-mode), when not "respected" is then not well-formed...

I tried something around it [1]

Not yet working... The levels are still messed up and i have no way to
determine the levels correctly from this data-structure without reparsing
myself the buffer.

So i guess, the only way is to try and improve [2]

Or to override imenu-create-index-function (whose value is the function
markdown-imenu-create-index that I use to extract a beginning of toc) with
one that is ok regarding this use case.

But, I'm nowhere near having time to yet.

[1] https://github.com/ardumont/markdown-toc/blob/improve-strange-markdown-dealing/markdown-toc.el#L92

[2] https://github.com/jrblevin/markdown-mode/blob/master/markdown-mode.el#L4014

Cheers,

from markdown-toc.

wesnel avatar wesnel commented on July 24, 2024

hi, is this still an issue? i cannot recreate this issue on my end:

## foo

### bar

<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-refresh-toc -->
**Table of Contents**

- [foo](#foo)
    - [bar](#bar)

<!-- markdown-toc end -->

i think the upstream issue may have been fixed. i am using markdown-mode version 2.6-alpha and markdown-toc version 0.1.5.

maybe the fix was in jrblevin/markdown-mode#574? i'm not sure.

from markdown-toc.

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.