Browse Source

Renamed main class & file

pull/14/head
Vitaly Puzrin 10 years ago
parent
commit
ece7b3e3f1
  1. 2
      index.js
  2. 8
      lib/index.js

2
index.js

@ -1,4 +1,4 @@
'use strict';
module.exports = require('./lib/parser');
module.exports = require('./lib/');

8
lib/parser.js → lib/index.js

@ -13,7 +13,7 @@ var defaults = require('./defaults');
// Main class
//
function Parser(options) {
function Remarkable(options) {
this.options = assign({}, defaults);
this.state = null;
@ -29,12 +29,12 @@ function Parser(options) {
}
Parser.prototype.set = function (options) {
Remarkable.prototype.set = function (options) {
assign(this.options, options);
};
Parser.prototype.render = function (src) {
Remarkable.prototype.render = function (src) {
var tokens, tok, i, l, env = { references: Object.create(null) };
// Parse blocks
@ -53,4 +53,4 @@ Parser.prototype.render = function (src) {
};
module.exports = Parser;
module.exports = Remarkable;
Loading…
Cancel
Save