From 24b5ca2ac9e519481e9c03f7e5ff370a08cd6671 Mon Sep 17 00:00:00 2001 From: Tavin Cole Date: Mon, 6 Mar 2023 01:46:00 +0100 Subject: [PATCH 1/2] [FIX] admon titles can be longer than one word --- src/directives/admonitions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/directives/admonitions.ts b/src/directives/admonitions.ts index e2bcd7a..ea2415c 100644 --- a/src/directives/admonitions.ts +++ b/src/directives/admonitions.ts @@ -46,7 +46,7 @@ class BaseAdmonition extends Directive { newTokens.push(adTokenTitle) // we want the title to be parsed as Markdown during the inline phase - const title = data.args[0] || this.title + const title = data.args.join(' ') || this.title newTokens.push( this.createToken("inline", "", 0, { map: [data.map[0], data.map[0]], From 6b15d20c54b6457d0be20022878224ef43001a4b Mon Sep 17 00:00:00 2001 From: Tavin Cole Date: Mon, 6 Mar 2023 01:56:48 +0100 Subject: [PATCH 2/2] double quote style --- src/directives/admonitions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/directives/admonitions.ts b/src/directives/admonitions.ts index ea2415c..0f6d93a 100644 --- a/src/directives/admonitions.ts +++ b/src/directives/admonitions.ts @@ -46,7 +46,7 @@ class BaseAdmonition extends Directive { newTokens.push(adTokenTitle) // we want the title to be parsed as Markdown during the inline phase - const title = data.args.join(' ') || this.title + const title = data.args.join(" ") || this.title newTokens.push( this.createToken("inline", "", 0, { map: [data.map[0], data.map[0]],