Giter VIP home page Giter VIP logo

pretty-markdown-pdf's People

Contributors

dependabot[bot] avatar djfdyuruiry avatar malys avatar manuth avatar migrap avatar pablodgonzalez avatar tigerhawkvok avatar vimtaai avatar vipzhicheng avatar yzane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pretty-markdown-pdf's Issues

prettyMdPdf.convertMd

prettyMdPdf.convertMdToPdf({ markdownFilePath: "my-doc.md" })

should be

prettyMdPdf.convertMd({ markdownFilePath: "my-doc.md" })

This is also valid for the other occurrences in the ReadMe.md File.

Markdown base url

[![name](Images/name.png)](http://www.name.com)

when the image URL is relative then it does not render the image, in the marked package we can give the base URL

marked.parse(
      this.mdFileData,
      {
        renderer: this.renderer,
        baseUrl: SERVER_URL,
      },
    );

highlight deprecation warning

[pretty-md-pdf] Converting markdown file: DOCUMENTATION.md
[pretty-md-pdf] Converting (convertMarkdownToHtml) ...
Deprecated as of 10.7.0. highlight(lang, code, ...args) has been deprecated.
Deprecated as of 10.7.0. Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277
[pretty-md-pdf] Exporting (pdf) ...
[pretty-md-pdf] Exported to file: DOCUMENTATION.pdf

config file: highlightStyle file doesnt work

Own highlight style will not be replaced but appended:

"highlightStyle": "c:\configFile.json",

output:
ENOENT: no such file or directory, access
'C:\Users\username\AppData\Roaming\npm\node_modules\pretty-markdown-pdf\node_modules\highlight.js\styles\c:\configFile.json'

High vulnerability NPM with inner dependency

Doesnt seem to be a fix yet for the string library or the markdown headers. The issue has been raised on the dependencies githib page, but likely will result in a package change if it is ever fixed.

Screenshot 2021-02-16 at 16 01 52

Improve the compatibility on Plant UML inclusion

For the daily work I use IntelliJ with its Markdown plugin.

In order to display plant uml diagrams using that, following syntax is suggested (please ignore the extra spaces between ` characters):

` ` `puml
Bob -[#red]> Alice : hello
Alice -[#0000FF]->Bob : ok
` ` `

this also works

` ` `puml
@startuml
Bob -[#red]> Alice : hello
Alice -[#0000FF]->Bob : ok
@enduml
` ` `

However, none of the above works with pretty-markdown-pdf. I need to use the below, which is not supported by the IntelliJ environment:

@startuml
Bob -[#red]> Alice : hello
Alice -[#0000FF]->Bob : ok
@enduml

It seems to me that the IntelliJ's syntax is closer to Markdown specification. Can it be supported by pretty-markdown-pdf?

This Visual Studio plugin suggests the syntax below, also supported by IntelliJ, maybe that would be the most compatible:

` ` `plantuml
@startuml
Bob -[#red]> Alice : hello
Alice -[#0000FF]->Bob : ok
@enduml
` ` `

Hangs at Exporting (pdf) ...

Trying to run an export with the following configuration:

{
	"executablePath": "/c/Program Files/Google/Chrome/Application/chrome.exe"
}

With pretty-md-pdf -i test.md -c <config path>

I am on ubuntu, through the WSL on Windows 10.

Export hands indefinitely on:

[pretty-md-pdf] Exporting (pdf) ...

Other export types hang the same way

Feature request, make puppeteer optional

Puppeteer download is a little bit slow, so is it possible to let it optional, so I can let my users use custom location, maybe use Chrome instead.

I find out the puppeter-core may work at here.

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.