Giter Club home page Giter Club logo

markdown-to-document's People

Contributors

gaelgirodon avatar

Stargazers

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

Watchers

 avatar

markdown-to-document's Issues

Rename dest file

With the --dest option, we can only provide a directory.

Would be nice to have an option or an enhancement of the --dest option to be able to rename the destination file. It'll prevent user to user more libs to move, rename or delete files.

My case is to compile README.md to dist/index.html.

And thanks for your lib, it's pretty nice ;)

No automatic syntax highlighting for code blocks

When I run this command:
mdtodoc markdownfiles/*.md --dest dist --theme github --highlight-style atom-one-light,

I get no syntax highlighting for my code blocks
I would expect this to have syntax colouring for my html and javascript as below.

Example.md

Some js file stuf here

const x = "hello"
console.log(x)

Some html stuff here...

<!doctype html>
<html lang="en">
<body>
  <div id="app">Placeholder.</div>

  <script>
    // do something here...
    document.getElementById('app').innerHTML = 'hello world';
  </script>
</body>
</html>

them - solarized dark - as suggested in your documentation causes error

Your documentation themes do not work for me and solarized dark causes an actual error

The --highlight-style option can receive the name of a Hightlight.js style (file name without extension, e.g. solarized-dark) or the path to a custom style file (a local path or a HTTP URL).

[email protected] mdtodoc
mdtodoc markdownfiles/*.md --dest dist --theme github --highlight-style solarized-dark --layout layout/custom-layout.html

Error: Invalid highlight style 'solarized-dark': file not found or not readable.
at Style.validate (file:///C:/site/docs/node_modules/markdown-to-document/src/style.js:177:13)
at async Style.loadHighlightStyle (file:///C:/site/docs/node_modules/markdown-to-document/src/style.js:160:19)
at async Style.init (file:///C:/site/node_modules/markdown-to-document/src/style.js:77:28)
at async Processor.process (file:///C:/site/docs/node_modules/markdown-to-document/src/processor.js:63:5)

text in mermaid diagrams show incomplete

env

docker: node:lts-alpine3.10

cli

mdtodoc open_doc.md -l "page" -t "github" -s "atom-one-light" --numbered-headings --code-copy --mermaid

image

image

PS: diagram render correctly On win10 & v12.19.0 of same command

image

Scaling - retaining original directories in output would be very useful

Technically this isn't a bug, but
for the benefit of using this plugin to link markdown files between each other-
it's important for tidy folder organisation when scaling.

Input:

markdownfiles/
  index.md

  cat1_files/
    c1-1.md
    c1-2.md

  cat2_files/
    c2-1.md

build

mdtodoc markdownfiles/* --dest dist/* --theme github --highlight-style atom-one-dark -l basic",
or
mdtodoc markdownfiles/* --dest dist/ --theme github --highlight-style atom-one-dark -l basic",
or
mdtodoc markdownfiles --dest dist --theme github --highlight-style atom-one-dark -l basic",

Expected output

/dist/
  index.html

  cat1_files/
    c1-1.html
    c1-2.html

  cat2_files/
    c2-1.html

Actual

`Error: Invalid source(s) (should be valid md files).

Syntax highlighting not colouring code block

When I run this command:
mdtodoc markdownfiles/*.md --dest dist --theme github --highlight-style atom-one-light,

I get no syntax highlighting for my code blocks
I would expect this to have syntax colouring for my html and javascript as below.

Example.md

Some js file stuf here

const x = "hello"
console.log(x)

Some html stuff here...

<!doctype html>
<html lang="en">
<body>
  <div id="app">Placeholder.</div>

  <script>
    // do something here...
    document.getElementById('app').innerHTML = 'hello world';
  </script>
</body>
</html>

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.