Giter VIP home page Giter VIP logo

limedocs-wiki-converter's Issues

Using pdf format for output throws an error

Using version: 0.1.12

Using lwc like this: lwc -f pdf ./MySoftware.wiki

Gives me this error:

      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at _errnoException (util.js:999:13)
    at Pipe.onread (net.js:629:25)```

HTML works fine. Any suggestions? Thank you so much

Unhandled rejection Error

How do I enable support for linked image downloads?

C:\Users\MartinHinshelwoodnkd\source\repos\APS.wiki [master ≡]> lwc -f pdf -v -d .\
debug:   gwc launched with options format=pdf, output=./, title=Documentation , tocFile=null, tocLevel=3, highlightTheme=darkula, userCssFile=null, verbose=true, disableInlineAssets=true, filename=documentation
(node:26120) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
debug:   Found 19 markdown files and 19 links pointing to them in TOC
Unhandled rejection Error: The file https://cloud.githubusercontent.com/assets/89504/25373965/ff6d88c0-299b-11e7-85c7-579f05deafb3.jpg was not found!
Please report this to https://github.com/markedjs/marked.
    at DataURI.encodeSync (C:\Users\MartinHinshelwoodnkd\AppData\Roaming\npm\node_modules\limedocs-wiki-converter\node_modules\datauri\lib\datauri\api.js:63:19)
    at DataURI (C:\Users\MartinHinshelwoodnkd\AppData\Roaming\npm\node_modules\limedocs-wiki-converter\node_modules\datauri\lib\datauri\module.js:29:37)
    at Renderer.mainRenderer.image (C:\Users\MartinHinshelwoodnkd\AppData\Roaming\npm\node_modules\limedocs-wiki-converter\dist\markdown.js:47:48)
    at InlineLexer.outputLink (C:\Users\MartinHinshelwoodnkd\AppData\Roaming\npm\node_modules\limedocs-wiki-converter\node_modules\marked\lib\marked.js:738:21)
    at InlineLexer.output (C:\Users\MartinHinshelwoodnkd\AppData\Roaming\npm\node_modules\limedocs-wiki-converter\node_modules\marked\lib\marked.js:653:19)
    at Parser.tok (C:\Users\MartinHinshelwoodnkd\AppData\Roaming\npm\node_modules\limedocs-wiki-converter\node_modules\marked\lib\marked.js:1142:50)
    at Parser.parse (C:\Users\MartinHinshelwoodnkd\AppData\Roaming\npm\node_modules\limedocs-wiki-converter\node_modules\marked\lib\marked.js:1003:17)
    at Function.Parser.parse (C:\Users\MartinHinshelwoodnkd\AppData\Roaming\npm\node_modules\limedocs-wiki-converter\node_modules\marked\lib\marked.js:985:17)
    at marked (C:\Users\MartinHinshelwoodnkd\AppData\Roaming\npm\node_modules\limedocs-wiki-converter\node_modules\marked\lib\marked.js:1322:19)
    at Markdown.convertMarkdownString (C:\Users\MartinHinshelwoodnkd\AppData\Roaming\npm\node_modules\limedocs-wiki-converter\dist\markdown.js:94:14)
    at Markdown.convertMarkdownFile (C:\Users\MartinHinshelwoodnkd\AppData\Roaming\npm\node_modules\limedocs-wiki-converter\dist\markdown.js:99:19)
    at LimedocsWikiConverter.<anonymous> (C:\Users\MartinHinshelwoodnkd\AppData\Roaming\npm\node_modules\limedocs-wiki-converter\dist\limedocs-wiki-converter.js:87:43)
    at Array.forEach (<anonymous>)
    at LimedocsWikiConverter.computePages (C:\Users\MartinHinshelwoodnkd\AppData\Roaming\npm\node_modules\limedocs-wiki-converter\dist\limedocs-wiki-converter.js:83:27)
    at LimedocsWikiConverter.getPages (C:\Users\MartinHinshelwoodnkd\AppData\Roaming\npm\node_modules\limedocs-wiki-converter\dist\limedocs-wiki-converter.js:97:14)
    at PdfWriter.write (C:\Users\MartinHinshelwoodnkd\AppData\Roaming\npm\node_modules\limedocs-wiki-converter\dist\pdf-writer.js:43:27)
C:\Users\MartinHinshelwoodnkd\source\repos\APS.wiki [master ≡ +6 ~0 -0 !]>

Empty PDF output

HTML output is fine but pdf output is empty

$ date 
Thu Nov  8 13:35:35 CET 2018

$ sudo npm install -g limedocs-wiki-converter
npm WARN deprecated [email protected]: Potential REDOS vulnerability removed in v1.1.0
npm WARN deprecated [email protected]: Potential REDOS vulnerability fixed in v0.3.0
/usr/bin/lwc -> /usr/lib/node_modules/limedocs-wiki-converter/dist/cli/lwc.js
+ [email protected]

$ git clone https://github.com/aol/moloch.wiki.git

$ lwc -v -f pdf ./moloch.wiki
debug:   gwc launched with options format=pdf, output=./, title=Documentation , tocFile=null, tocLevel=3, highlightTheme=darkula, userCssFile=null, verbose=true, disableInlineAssets=false, filename=documentation
debug:   Found 17 markdown files and 17 links pointing to them in TOC
debug:   Generating pdf: 17 pages to generate

$  file documentation.pdf 
documentation.pdf: empty

$ wkhtmltopdf documentation.html test.pdf
Loading page (1/2)
Printing pages (2/2)                                               
Done                         

$ file test.pdf 
test.pdf: PDF document, version 1.4

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 9.5 (stretch)
Release:	9.5
Codename:	stretch

$ nodejs --version
v10.13.0

$ wkhtmltopdf -V
wkhtmltopdf 0.12.3.2


No inlining of .gif

.gif inlining is not working as expected

$ sudo npm install -g limedocs-wiki-converter
npm WARN deprecated [email protected]: Potential REDOS vulnerability removed in v1.1.0
npm WARN deprecated [email protected]: Potential REDOS vulnerability fixed in v0.3.0
/usr/bin/lwc -> /usr/lib/node_modules/limedocs-wiki-converter/dist/cli/lwc.js
+ [email protected]

$ git clone https://github.com/aol/moloch.wiki.git

$ lwc -v ./moloch.wiki
debug:   gwc launched with options format=html, output=./, title=Documentation , tocFile=null, tocLevel=3, highlightTheme=darkula, userCssFile=null, verbose=true, disableInlineAssets=false, filename=documentation
debug:   Found 17 markdown files and 17 links pointing to them in TOC
debug:   Generating html: 17 pages to generate
info:    html file written: documentation.html
documentation.html

$ grep .gif documentation.html |tail -n 4
<p>[[SingleHostMoloch.gif]]</p>
<p>[[MultiHostMoloch.gif]]</p>
<p>[[HighTrafficMoloch.gif]]</p>
<p>[[MultiClusterMoloch.gif]]</p>

# Expected result : the 4 .gif should be inlined (see https://github.com/aol/moloch/wiki/Architecture#single-host ) 

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 9.5 (stretch)
Release:	9.5
Codename:	stretch

$ nodejs --version
v10.13.0

Unicode in TOC

Then I use russian TOC in documentation it's works perfect in github, but broken during export. Also some files from TOC not importred to output html.

Accessing non-existent property 'padLevels' of module exports inside circular dependency

Although 5 md files are found the PDF is empty!

C:\Users\MartinHinshelwoodnkd\source\repos\aps\aps [git-reset +4 ~0 -5 !]> lwc -f pdf -toc .\Trainer-Guidance\_Toc.md -v .\Trainer-Guidance\
debug:   gwc launched with options format=pdf, output=./, title=-o, tocFile=Trainer-Guidance\_Toc.md, tocLevel=3, highlightTheme=darkula, userCssFile=null, verbose=true, disableInlineAssets=false, filename=documentation
(node:13148) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
debug:   Found 5 markdown files and 5 links pointing to them in TOC
debug:   Generating pdf: 0 pages to generate
info:    pdf file written: documentation.pdf
C:\Users\MartinHinshelwoodnkd\source\repos\aps\aps [git-reset +4 ~0 -5 !]>

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.