draftjs-md-converter
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -17,3 +17,4 @@ 'use strict'; | ||
'header-five': '##### ', | ||
'header-six': '###### ' | ||
'header-six': '###### ', | ||
blockquote: '> ' | ||
}; | ||
@@ -203,3 +204,4 @@ | ||
Header6: 'header-six', | ||
CodeBlock: 'code-block' | ||
CodeBlock: 'code-block', | ||
BlockQuote: 'blockquote' | ||
}; | ||
@@ -206,0 +208,0 @@ |
{ | ||
"name": "draftjs-md-converter", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Converter for converting Draft.js state into Markdown and vice versa", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -48,3 +48,3 @@ [![Build Status](https://travis-ci.org/kadikraman/draftjs-md-converter.svg?branch=master)](https://travis-ci.org/kadikraman/draftjs-md-converter) | ||
``` | ||
This can be extended or overridden by passing it in as a second optional argument to `draftjsToMd`, e.g. | ||
The inline styles extended or overridden by passing it in as a second optional argument to `draftjsToMd`, e.g. | ||
```js | ||
@@ -58,2 +58,4 @@ const myMdDict = { | ||
NOTE: at this point you cannot override block styles! | ||
## Example | ||
@@ -60,0 +62,0 @@ |
@@ -16,2 +16,3 @@ 'use strict'; | ||
'header-six': '###### ', | ||
blockquote: '> ', | ||
}; | ||
@@ -18,0 +19,0 @@ |
@@ -25,2 +25,3 @@ 'use strict'; | ||
CodeBlock: 'code-block', | ||
BlockQuote: 'blockquote', | ||
}; | ||
@@ -27,0 +28,0 @@ |
27308
649
111