Giter VIP home page Giter VIP logo

Comments (7)

dio833 avatar dio833 commented on June 11, 2024 1

@ezequias
>user setting open youre user setting then find "markdown-pdf.type".

You can choose output format. such as "markdown-pdf.type": "html",.

In HTML source , all h1~h6 tags miss ID attribute. So Markdown TOC can't work well here.

You can add id into h1~h6 tags manually . or maybe @yzane can fix this issue.

from vscode-markdown-pdf.

dio833 avatar dio833 commented on June 11, 2024

Hello

I convert md to html file with Markdown PDF then trace html code.

I see the tag <h1-6> doesn't has ID attribute. So Anchors can't work.

Could you keep the ID attribute of <h1-6> tag ?

Thanks.

from vscode-markdown-pdf.

ezequias avatar ezequias commented on June 11, 2024

@dio833 I didn't understand you. How did you convert md to html with Markdown PDF? Is it another extension? All my attributes are from h1 to h6 but I confess it has some spaces on links generated.

Would be nice if the extension only could create a hyperlink only about the first word of the markdown ID.

from vscode-markdown-pdf.

ezequias avatar ezequias commented on June 11, 2024

@dio833 nice tip. I like it! ;)

from vscode-markdown-pdf.

coop333 avatar coop333 commented on June 11, 2024

This is related to issue #6

from vscode-markdown-pdf.

hermannsorgel avatar hermannsorgel commented on June 11, 2024

As I see, using ID attributes is not enough to fix issue: phantomjs doesn't work well with internal links: ariya/phantomjs/issues/13959

from vscode-markdown-pdf.

yzane avatar yzane commented on June 11, 2024

I pre-released Markdown PDF ver1.0.0 which replaced pdf converter with puppeteer instead of html-pdf.
Please download from here and try.

from vscode-markdown-pdf.

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.