Browse Source

Removed 'full' preset - not needed anymore

pull/25/head
Vitaly Puzrin 10 years ago
parent
commit
79b11bc564
  1. 1
      lib/index.js
  2. 44
      lib/presets/default.js
  3. 38
      lib/presets/full.js
  4. 2
      test/markdown-it.js
  5. 4
      test/misc.js

1
lib/index.js

@ -13,7 +13,6 @@ var ParserInline = require('./parser_inline');
var config = {
'default': require('./presets/default'),
zero: require('./presets/zero'),
full: require('./presets/full'),
commonmark: require('./presets/commonmark')
};

44
lib/presets/default.js

@ -30,46 +30,8 @@ module.exports = {
components: {
core: {
rules: [
'block',
'inline',
'replacements',
'linkify',
'smartquotes'
]
},
block: {
rules: [
'blockquote',
'code',
'fences',
'heading',
'hr',
'htmlblock',
'lheading',
'list',
'paragraph',
'reference',
'table'
]
},
inline: {
rules: [
'autolink',
'backticks',
'del',
'emphasis',
'entity',
'escape',
'htmltag',
'image',
'link',
'newline',
'text'
]
}
core: {},
block: {},
inline: {}
}
};

38
lib/presets/full.js

@ -1,38 +0,0 @@
// markdown-it `full` options
'use strict';
module.exports = {
options: {
html: false, // Enable HTML tags in source
xhtmlOut: false, // Use '/' to close single tags (<br />)
breaks: false, // Convert '\n' in paragraphs into <br>
langPrefix: 'language-', // CSS language prefix for fenced blocks
linkify: false, // autoconvert URL-like texts to links
// Enable some language-neutral replacements + quotes beautification
typographer: false,
// Double + single quotes replacement pairs, when typographer enabled,
// and smartquotes on. Set doubles to '«»' for Russian, '„“' for German.
quotes: '\u201c\u201d\u2018\u2019' /* “”‘’ */,
// Highlighter function. Should return escaped HTML,
// or '' if input not changed
//
// function (/*str, lang*/) { return ''; }
//
highlight: null,
maxNesting: 20 // Internal protection, recursion limit
},
components: {
// Don't restrict core/block/inline rules
core: {},
block: {},
inline: {}
}
};

2
test/markdown-it.js

@ -8,7 +8,7 @@ var generate = require('markdown-it-testgen');
describe('markdown-it', function () {
var md = require('../')('full', {
var md = require('../')({
html: true,
langPrefix: '',
typographer: true,

4
test/misc.js

@ -62,7 +62,7 @@ describe('API', function () {
});
it('configure coverage', function () {
var md = markdownit('full');
var md = markdownit();
// conditions coverage
md.configure({});
@ -184,7 +184,7 @@ describe('Misc', function () {
});
it('Should parse inlines only', function () {
var md = markdownit('full');
var md = markdownit();
assert.strictEqual(md.renderInline('a *b* c'), 'a <em>b</em> c');
});

Loading…
Cancel
Save