Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.
/ roaster Public archive
forked from atom/roaster

🔒 Turns a raw and crunchy Markdown file into nice and smooth output

License

Notifications You must be signed in to change notification settings

pulsar-edit/roaster

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This Repo is archived under Pulsar-Edit since it is not used.

Asynchronously convert a Markdown file into HTML. WOW!

You can specify either the contents of a file, or, the path to a file to read.

Usage

var roaster = require("roaster");
var fs = require("fs");
var options = { isFile: true };

roaster("./markdown.md", options, function(err, contents) {
	fs.writeFileSync("./markdown.html", contents, "utf8");
});

roaster("# Hello World", function(err, contents) {
	fs.writeFileSync("./hello-world.html", contents, "utf8");
});

Options

The second parameter, options, is optional. Any options defined here are passed to the dependent libraries for use in their own systems.

If you pass options.isFile, the first parameter is assumed to be a file path. By default, this is false, which means that the first parameter is an actual string of Markdown.

Libraries used

About

🔒 Turns a raw and crunchy Markdown file into nice and smooth output

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 92.1%
  • JavaScript 5.3%
  • Shell 2.6%