braft-convert
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -308,6 +308,7 @@ "use strict"; | ||
var nextBlockType = nextBlock && nextBlock.getType(); | ||
var codeBreakLine = block.text ? '' : '<br>'; | ||
if (previousBlockType === 'code-block' && nextBlockType === 'code-block') { | ||
return { | ||
start: "<code" + blockStyle + "><div>", | ||
start: "<code><div>" + codeBreakLine, | ||
end: '</div></code>' | ||
@@ -317,3 +318,3 @@ }; | ||
return { | ||
start: "<code" + blockStyle + "><div>", | ||
start: "<code><div>" + codeBreakLine, | ||
end: '</div></code></pre>' | ||
@@ -323,3 +324,3 @@ }; | ||
return { | ||
start: "<pre><code" + blockStyle + "><div>", | ||
start: "<pre><code><div>" + codeBreakLine, | ||
end: '</div></code>' | ||
@@ -329,3 +330,3 @@ }; | ||
return { | ||
start: "<pre><code" + blockStyle + "><div>", | ||
start: "<pre><code><div>" + codeBreakLine, | ||
end: '</div></code></pre>' | ||
@@ -332,0 +333,0 @@ }; |
{ | ||
"name": "braft-convert", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A convert helper for Braft Editor.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
207348
550