0.2.0 • Published 2 years ago

als-md v0.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Als-Md 0.1 Beta

Als-Md is converts markDown files to html with Node.js.

The package so far able to convert:

  • javascript/html/css code to colored code with als-coloredcode (dependent package)
  • One line code to
  • Strong and Italic
  • blockquote
  • H1-H6
  • ul and lI only first level
  • img without title attribute
  • Link (a href)

Basics

Md.scripts.push('/your-script')
Md.links.push('/your-style')

let pathToMdFile = [__dirname,'..','some','readme.md'] // can be string or array for path.join
let title = 'Some Title For Converted Page'
let onlyCode = false // convert only html/css/js code (false by default)

new Md(pathToMdFile,title,onlyCode) // creates __dirname/../some/readme.html

If title is not undefined, the html code will be created inside this construction:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    ${scripts}
    ${links}
    <title>${this.title}</title>
    </head>
    <body>
    ${this.md}
</body>
</html>
0.2.0

2 years ago

0.1.22

3 years ago

0.1.21

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago