|
@@ -20,6 +20,9 @@ class TextNodeParser extends NodeParser {
|
|
if (attributes.isNotEmpty &&
|
|
if (attributes.isNotEmpty &&
|
|
attributes.containsKey(BuiltInAttributeKey.subtype)) {
|
|
attributes.containsKey(BuiltInAttributeKey.subtype)) {
|
|
final subtype = attributes[BuiltInAttributeKey.subtype];
|
|
final subtype = attributes[BuiltInAttributeKey.subtype];
|
|
|
|
+ if (node.next == null) {
|
|
|
|
+ suffix = '';
|
|
|
|
+ }
|
|
if (subtype == 'heading') {
|
|
if (subtype == 'heading') {
|
|
final heading = attributes[BuiltInAttributeKey.heading];
|
|
final heading = attributes[BuiltInAttributeKey.heading];
|
|
if (heading == 'h1') {
|
|
if (heading == 'h1') {
|
|
@@ -51,6 +54,10 @@ class TextNodeParser extends NodeParser {
|
|
result = '- [ ] $markdown';
|
|
result = '- [ ] $markdown';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ } else {
|
|
|
|
+ if (node.next == null) {
|
|
|
|
+ suffix = '';
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return '$result$suffix';
|
|
return '$result$suffix';
|
|
}
|
|
}
|