document-ir 0.6.0 → 0.6.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -339,10 +339,10 @@ class u {
339
339
  return t.id != null && (i.id = t.id), t.title && (i.title = t.title), t.target && (i.target = t.target), t.userGeneratedContent && (i.userGeneratedContent = t.userGeneratedContent), t.noReferrer && (i.noReferrer = t.noReferrer), t.noFollow && (i.noFollow = t.noFollow), t.noOpener && (i.noOpener = t.noOpener), i;
340
340
  }
341
341
  async admonition(t) {
342
- await this.beforeBlock();
342
+ t.inline || await this.beforeBlock();
343
343
  const e = await this.chooseChildren(t.content);
344
344
  let i;
345
- t.title && (i = await this.chooseChildren(t.title)), await this.afterBlock();
345
+ t.title && (i = await this.chooseChildren(t.title)), t.inline || await this.afterBlock();
346
346
  const s = {
347
347
  type: "admonition",
348
348
  admonitionType: t.admonitionType,
@@ -1148,7 +1148,7 @@ class w {
1148
1148
  this.beforeInline(), this.chooseChildren(t.content), this.afterInline();
1149
1149
  }
1150
1150
  admonition(t) {
1151
- this.beforeBlock(), t.title && this.chooseChildren(t.title), this.chooseChildren(t.content), this.afterBlock();
1151
+ t.inline || this.beforeBlock(), t.title && this.chooseChildren(t.title), this.chooseChildren(t.content), t.inline || this.afterBlock();
1152
1152
  }
1153
1153
  array(t) {
1154
1154
  this.chooseChildren(t.content);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-ir",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",