@abreen/tada 1.5.6 → 1.5.8

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.
@@ -67,10 +67,12 @@ export function tocPlugin(md: MarkdownIt): void {
67
67
  const parentIsSection = depth === 1 && containerStack[0] === 'section';
68
68
 
69
69
  if (depth === 0 || parentIsSection) {
70
- const match = token.info.trim().match(/^(note|warning)\s*"?(.+)?"?$/);
70
+ const match = token.info
71
+ .trim()
72
+ .match(/^(note|warning)(?:\s+"(.+)"|\s+(.+))?$/);
71
73
  if (match) {
72
74
  const type = match[1];
73
- let title = match[2]?.trim();
75
+ let title = (match[2] || match[3])?.trim();
74
76
  if (title) {
75
77
  title = md.utils.escapeHtml(curlyQuote(title));
76
78
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abreen/tada",
3
- "version": "1.5.6",
3
+ "version": "1.5.8",
4
4
  "type": "module",
5
5
  "description": "A static site generator",
6
6
  "license": "MIT",
@@ -39,7 +39,7 @@ export async function mountPerPageComponents(
39
39
  }
40
40
  resolve();
41
41
  } catch (err) {
42
- if (__IS_DEV__) {
42
+ if (typeof __IS_DEV__ !== 'undefined' && __IS_DEV__) {
43
43
  console.error(`Failed to mount ${name} component:`, String(err));
44
44
  }
45
45
  reject();
package/src/style.scss CHANGED
@@ -396,8 +396,8 @@ dl {
396
396
  }
397
397
  }
398
398
 
399
- dd {
400
- margin-bottom: var(--gap);
399
+ dd > *:first-child {
400
+ margin-top: 0;
401
401
  }
402
402
  }
403
403