confluence-md-sync 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -140,6 +140,14 @@ class Converter {
|
|
|
140
140
|
if (meaningful.length === 1 && meaningful[0].kind === 'el' && meaningful[0].name === 'ac:structured-macro') {
|
|
141
141
|
return this.macroToMd(meaningful[0]);
|
|
142
142
|
}
|
|
143
|
+
if (meaningful.length > 1 && meaningful.every(n => n.kind === 'el' && n.name === 'ac:structured-macro')) {
|
|
144
|
+
const native = meaningful.map(n => this.tryNativeMd(n, getAttr(n, 'ac:name') ?? ''));
|
|
145
|
+
if (native.every(s => s?.startsWith('{{') && !s.includes('\n'))) {
|
|
146
|
+
this.stats.native += native.length;
|
|
147
|
+
this.stats.normalized++; // A paragraph around block macros is redundant in Confluence.
|
|
148
|
+
return native.join(' ');
|
|
149
|
+
}
|
|
150
|
+
}
|
|
143
151
|
return this.paragraphMd(el.children);
|
|
144
152
|
}
|
|
145
153
|
if (el.name === 'hr')
|
package/package.json
CHANGED