Applying fix from 2.0.1 to blockQuote and paragraph (fac23ef)
This commit is contained in:
parent
ca231ab2d8
commit
b52de58fbd
@ -125,10 +125,6 @@ public class CorePlugin extends AbstractMarkwonPlugin {
|
||||
|
||||
visitor.ensureNewLine();
|
||||
|
||||
if (visitor.blockQuoteIndent() > 0) {
|
||||
visitor.forceNewLine();
|
||||
}
|
||||
|
||||
final int length = visitor.length();
|
||||
visitor.incrementBlockQuoteIndent();
|
||||
visitor.visitChildren(blockQuote);
|
||||
@ -137,11 +133,9 @@ public class CorePlugin extends AbstractMarkwonPlugin {
|
||||
|
||||
if (visitor.hasNext(blockQuote)) {
|
||||
visitor.ensureNewLine();
|
||||
if (visitor.blockQuoteIndent() > 0) {
|
||||
visitor.forceNewLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -363,11 +357,9 @@ public class CorePlugin extends AbstractMarkwonPlugin {
|
||||
|
||||
if (!inTightList && visitor.hasNext(paragraph)) {
|
||||
visitor.ensureNewLine();
|
||||
if (visitor.blockQuoteIndent() == 0) {
|
||||
visitor.forceNewLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user