document-ir 0.0.10 → 0.0.11
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.
|
@@ -207,11 +207,15 @@ export class IdentityTransformer {
|
|
|
207
207
|
await this.beforeBlock();
|
|
208
208
|
const content = await this.chooseChildren(node.content);
|
|
209
209
|
await this.afterBlock();
|
|
210
|
-
|
|
210
|
+
const result = {
|
|
211
211
|
type: "header",
|
|
212
212
|
content,
|
|
213
213
|
level: node.level || 2,
|
|
214
214
|
};
|
|
215
|
+
if (node.htmlId) {
|
|
216
|
+
result.htmlId = node.htmlId;
|
|
217
|
+
}
|
|
218
|
+
return result;
|
|
215
219
|
}
|
|
216
220
|
async highTechAlert(node) {
|
|
217
221
|
await this.beforeBlock();
|
package/package.json
CHANGED
|
@@ -210,11 +210,15 @@ class IdentityTransformer {
|
|
|
210
210
|
await this.beforeBlock();
|
|
211
211
|
const content = await this.chooseChildren(node.content);
|
|
212
212
|
await this.afterBlock();
|
|
213
|
-
|
|
213
|
+
const result = {
|
|
214
214
|
type: "header",
|
|
215
215
|
content,
|
|
216
216
|
level: node.level || 2,
|
|
217
217
|
};
|
|
218
|
+
if (node.htmlId) {
|
|
219
|
+
result.htmlId = node.htmlId;
|
|
220
|
+
}
|
|
221
|
+
return result;
|
|
218
222
|
}
|
|
219
223
|
async highTechAlert(node) {
|
|
220
224
|
await this.beforeBlock();
|