Skip to content

MaraniMatias/mdmath2html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown Math to HTML file.

Convert Markdown files with math annotations to HTML files.

Global installation

npm install -g mdmath2html
mdtohtml file.md

Options:

Usage mdtohtml [options] <file ...>

  • -t, --title Title of HTML file. default: Markdown file name.
  • -o, --outDir Directory where to save the files. default: Same director of the markdown file.
  • -f, --force Ignore file format.
  • -l, --level Level for table of contents.
  • -s, --silence Does not display info in console.
  • --offLine CSS/JS files linked to local user, by default using CDN.

Installation for your project.

npm install mdmath2html --save
var fs = require("fs");
var mdmath2html = require("mdmath2html");

var mdFile = fs.readFileSync("./latex.md");

var htmlFile = mdmath2html.render(
  mdFile.toString(),   // markdown
  "Markdown to Html.", // title
  { offLine: true }    // options
);

fs.writeFile("mk2html.html", htmlFile, "utf8", function(err) {
  if (err) throw err;
  console.log("The file has been saved!");
});

Dependencies


Donate

Bitcoin 3GonBQ8XibkL9d5SDu5j7MccavV1VKXXet

Ethereum 0xf3ca8c0630ceee045f715b5c596e70887a903d38

Monero 86sR1arBcYW918Bf8NhN3bCynwGfbzMna48KfsffHi8L1UEKqwu6FVRR3canexk3jfByB99gWB5bSFxvAt2ZneigLmSNxJB

About

Convert markdown files with math annotations to html files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published