aigis-marked
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -5,5 +5,5 @@ var _ = require('lodash'); | ||
module.exports = function (quote) { | ||
var className = this.md_class['blockquote']; | ||
var className = this.options.md_class['blockquote']; | ||
var classes = _.isArray(className) ? className.join(' ') : className; | ||
return format('<blockquote class="%s">\n%s</blockquote>\n', classes, quote); | ||
}; |
@@ -5,3 +5,3 @@ var _ = require('lodash'); | ||
module.exports = function(text, level, raw) { | ||
var className = this.md_class['heading']; | ||
var className = this.options.md_class['heading']; | ||
var classes = _.isArray(className) ? className.join(" ") : className; | ||
@@ -8,0 +8,0 @@ var id = this.options.headerPrefix + raw.toLowerCase().replace(/[^\w]+/g, '-'); |
@@ -5,3 +5,3 @@ var _ = require('lodash'); | ||
module.exports = function() { | ||
var className = this.md_class['hr']; | ||
var className = this.options.md_class['hr']; | ||
var classes = _.isArray(className) ? className.join(' ') : className; | ||
@@ -8,0 +8,0 @@ var end = this.options.xhtml ? '/' : ''; |
@@ -5,3 +5,3 @@ var _ = require('lodash'); | ||
module.exports = function(href, title, text) { | ||
var className = this.md_class['image']; | ||
var className = this.options.md_class['image']; | ||
var classes = _.isArray(className) ? className.join(' ') : className; | ||
@@ -8,0 +8,0 @@ var end = this.options.xhtml ? '/' : ''; |
@@ -5,3 +5,3 @@ var _ = require('lodash'); | ||
module.exports = function(href, title, text) { | ||
var className = this.md_class['link']; | ||
var className = this.options.md_class['link']; | ||
var classes = _.isArray(className) ? className.join(' ') : className; | ||
@@ -8,0 +8,0 @@ |
@@ -5,3 +5,3 @@ var _ = require('lodash'); | ||
module.exports = function(body, ordered) { | ||
var className = this.md_class['list']; | ||
var className = this.options.md_class['list']; | ||
var classes = _.isArray(className) ? className.join(' ') : className; | ||
@@ -8,0 +8,0 @@ var type = ordered ? 'ol' : 'ul'; |
@@ -5,3 +5,3 @@ var _ = require('lodash'); | ||
module.exports = function(text) { | ||
var className = this.md_class['listitem']; | ||
var className = this.options.md_class['listitem']; | ||
var classes = _.isArray(className) ? className.join(' ') : className; | ||
@@ -8,0 +8,0 @@ |
@@ -5,3 +5,3 @@ var _ = require('lodash'); | ||
module.exports = function(text) { | ||
var className = this.md_class['paragraph']; | ||
var className = this.options.md_class['paragraph']; | ||
var classes = _.isArray(className) ? className.join(' ') : className; | ||
@@ -8,0 +8,0 @@ |
@@ -5,3 +5,3 @@ var _ = require('lodash'); | ||
module.exports = function(header, body) { | ||
var className = this.md_class['table']; | ||
var className = this.options.md_class['table']; | ||
var classes = _.isArray(className) ? className.join(' ') : className; | ||
@@ -8,0 +8,0 @@ |
@@ -5,3 +5,3 @@ var _ = require('lodash'); | ||
module.exports = function(content, flags) { | ||
var className = this.md_class['tablecell']; | ||
var className = this.options.md_class['tablecell']; | ||
var classes = _.isArray(className) ? className.join(' ') : className; | ||
@@ -8,0 +8,0 @@ |
@@ -5,3 +5,3 @@ var _ = require('lodash'); | ||
module.exports = function(content) { | ||
var className = this.md_class['tablerow']; | ||
var className = this.options.md_class['tablerow']; | ||
var classes = _.isArray(className) ? className.join(' ') : className; | ||
@@ -8,0 +8,0 @@ |
{ | ||
"name": "aigis-marked", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Custom markdown renderer for aigis used with marked.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7946