@ckeditor/ckeditor5-markdown-gfm
Advanced tools
Comparing version 0.4.3 to 0.4.4
Changelog | ||
========= | ||
## [0.4.4](https://github.com/ckeditor/ckeditor5-markdown-gfm/compare/v0.4.3...v0.4.4) (2017-09-03) | ||
Internal changes only (updated dependencies, documentation, etc.). | ||
## [0.4.3](https://github.com/ckeditor/ckeditor5-markdown-gfm/compare/v0.4.2...v0.4.3) (2017-05-07) | ||
@@ -5,0 +10,0 @@ |
@@ -6,3 +6,3 @@ /** | ||
/* jshint browser: false, node: true, strict: true */ | ||
/* eslint-env node */ | ||
@@ -12,3 +12,4 @@ 'use strict'; | ||
const gulp = require( 'gulp' ); | ||
const ckeditor5Lint = require( '@ckeditor/ckeditor5-dev-lint' )( { | ||
const ckeditor5Lint = require( '@ckeditor/ckeditor5-dev-lint' ); | ||
const options = { | ||
// Files ignored by `gulp lint` task. | ||
@@ -19,6 +20,6 @@ // Files from .gitignore will be added automatically during task execution. | ||
] | ||
} ); | ||
}; | ||
gulp.task( 'lint', ckeditor5Lint.lint ); | ||
gulp.task( 'lint-staged', ckeditor5Lint.lintStaged ); | ||
gulp.task( 'lint', () => ckeditor5Lint.lint( options ) ); | ||
gulp.task( 'lint-staged', () => ckeditor5Lint.lintStaged( options ) ); | ||
gulp.task( 'pre-commit', [ 'lint-staged' ] ); |
{ | ||
"name": "@ckeditor/ckeditor5-markdown-gfm", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "GitHub Flavored Markdown data processor for CKEditor 5.", | ||
"keywords": [], | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-engine": "^0.10.0" | ||
"@ckeditor/ckeditor5-engine": "^0.11.0" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-dev-lint": "^2.0.2", | ||
"gulp": "^3.9.0", | ||
"@ckeditor/ckeditor5-dev-lint": "^3.1.0", | ||
"eslint-config-ckeditor5": "^1.0.5", | ||
"gulp": "^3.9.1", | ||
"guppy-pre-commit": "^0.4.0" | ||
@@ -13,0 +14,0 @@ }, |
GitHub Flavored Markdown support for CKEditor 5 | ||
=============================================== | ||
[![Join the chat at https://gitter.im/ckeditor/ckeditor5](https://badges.gitter.im/ckeditor/ckeditor5.svg)](https://gitter.im/ckeditor/ckeditor5?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-markdown-gfm.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-markdown-gfm) | ||
@@ -10,3 +11,3 @@ [![Build Status](https://travis-ci.org/ckeditor/ckeditor5-markdown-gfm.svg?branch=master)](https://travis-ci.org/ckeditor/ckeditor5-markdown-gfm) | ||
More information about the project can be found at the following URL: <https://github.com/ckeditor/ckeditor5-markdown-gfm>. | ||
GitHub Flavored Markdown support for CKEditor 5. More information about the project can be found at the following URL: <https://github.com/ckeditor/ckeditor5-markdown-gfm>. | ||
@@ -13,0 +14,0 @@ ## License |
@@ -17,3 +17,3 @@ /** | ||
/** | ||
* This data processor implementation uses GitHub flavored markdown as input/output data. | ||
* This data processor implementation uses GitHub Flavored Markdown as input/output data. | ||
* | ||
@@ -25,3 +25,3 @@ * @implements module:engine/dataprocessor/dataprocessor~DataProcessor | ||
/** | ||
* HTML data processor used to process HTML produced by the Markdown to HTML converter and the other way. | ||
* HTML data processor used to process HTML produced by the Markdown-to-HTML converter and the other way. | ||
* | ||
@@ -35,6 +35,6 @@ * @private | ||
/** | ||
* Converts provided markdown string to view tree. | ||
* Converts the provided Markdown string to view tree. | ||
* | ||
* @param {String} data Markdown string. | ||
* @returns {module:engine/view/documentfragment~DocumentFragment} Converted view element. | ||
* @param {String} data A Markdown string. | ||
* @returns {module:engine/view/documentfragment~DocumentFragment} The converted view element. | ||
*/ | ||
@@ -54,3 +54,4 @@ toView( data ) { | ||
/** | ||
* Converts provided {@link module:engine/view/documentfragment~DocumentFragment} to data format - in this case markdown string. | ||
* Converts the provided {@link module:engine/view/documentfragment~DocumentFragment} to data format — in this | ||
* case to a Markdown string. | ||
* | ||
@@ -57,0 +58,0 @@ * @param {module:engine/view/documentfragment~DocumentFragment} viewFragment |
@@ -8,5 +8,5 @@ /** | ||
* Original marked.js library renderer with fixes: | ||
* - no formatting for output HTML string - all newlines between tags are removed to create clean output, | ||
* - changed long string concatenations to ES5 template strings, | ||
* - changed code style. | ||
* - No formatting for output HTML string — all newlines between tags are removed to create clean output. | ||
* - Changed long string concatenations to ES5 template strings. | ||
* - Changed code style. | ||
* | ||
@@ -13,0 +13,0 @@ * @see {@link https://github.com/chjj/marked#renderer} Methods description. |
@@ -35,7 +35,7 @@ /** | ||
describe( 'toView', () => { | ||
for ( let key in testCases ) { | ||
for ( const key in testCases ) { | ||
const test = testCases[ key ].test; | ||
const result = testCases[ key ].result; | ||
it( `should escape ${key}`, () => { | ||
it( `should escape ${ key }`, () => { | ||
const documentFragment = dataProcessor.toView( test ); | ||
@@ -46,3 +46,3 @@ | ||
it( `should not escape ${key} in code blocks`, () => { | ||
it( `should not escape ${ key } in code blocks`, () => { | ||
const documentFragment = dataProcessor.toView( ` ${ test }` ); | ||
@@ -53,3 +53,3 @@ | ||
it( `should not escape ${key} in code spans`, () => { | ||
it( `should not escape ${ key } in code spans`, () => { | ||
const documentFragment = dataProcessor.toView( '`' + test + '`' ); | ||
@@ -56,0 +56,0 @@ |
@@ -134,3 +134,3 @@ /** | ||
'\n' + | ||
'- item 3' , | ||
'- item 3', | ||
@@ -137,0 +137,0 @@ '<ul>' + |
@@ -24,3 +24,3 @@ /** | ||
viewTextArea.value = stringify( dataProcessor.toView( markdown ) ); | ||
viewTextArea.value = stringify( dataProcessor.toView( markdown ) ); | ||
} | ||
@@ -27,0 +27,0 @@ |
@@ -40,3 +40,3 @@ /** | ||
// | ||
//<h1>header</h1> | ||
// <h1>header</h1> | ||
'<p>single line</p><h1>header</h1>', | ||
@@ -59,3 +59,3 @@ | ||
// | ||
//<h1>header</h1> | ||
// <h1>header</h1> | ||
'<p>single line</p><h1>header</h1>', | ||
@@ -62,0 +62,0 @@ |
Sorry, the diff of this file is not supported yet
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
117958
37
3907
16
4
+ Added@ckeditor/ckeditor5-engine@0.11.0(transitive)
+ Added@ckeditor/ckeditor5-utils@0.10.0(transitive)
- Removed@ckeditor/ckeditor5-engine@0.10.0(transitive)
- Removed@ckeditor/ckeditor5-utils@0.9.1(transitive)