diff --git a/plugins/plugin-md-power/src/node/container/codeTabs.ts b/plugins/plugin-md-power/src/node/container/codeTabs.ts
index c3e22d63..10164a6f 100644
--- a/plugins/plugin-md-power/src/node/container/codeTabs.ts
+++ b/plugins/plugin-md-power/src/node/container/codeTabs.ts
@@ -18,15 +18,13 @@ export const codeTabs: PluginSimple = (md) => {
const titlesContent = titles.map((title, index) => {
const icon = getFileIconName(title)
- return `\${icon ? `` : ''}${title}`
+ return `${icon ? `` : ''}${title}`
}).join('')
return `${titlesContent}`
},
- tabsCloseRenderer: () => `\
-
-`,
+ tabsCloseRenderer: () => ``,
tabOpenRenderer: ({ index }, tokens, tokenIndex) => {
let foundFence = false
@@ -49,13 +47,9 @@ export const codeTabs: PluginSimple = (md) => {
}
}
- return `\
-
-`
+ return ``
},
- tabCloseRenderer: () => `\
-
-`,
+ tabCloseRenderer: () => ``,
})
}
diff --git a/plugins/plugin-md-power/src/node/container/tabs.ts b/plugins/plugin-md-power/src/node/container/tabs.ts
index d5a9c286..dc3803a3 100644
--- a/plugins/plugin-md-power/src/node/container/tabs.ts
+++ b/plugins/plugin-md-power/src/node/container/tabs.ts
@@ -15,33 +15,17 @@ export const tabs: PluginSimple = (md) => {
return { id }
})
- return `\
-
-${titles
- .map(
- (title, titleIndex) => `\
-${title}
-`,
- )
- .join('')}\
-`
+ return `
+${titles.map((title, titleIndex) =>
+ `${title}`,
+ ).join('')}`
},
- tabsCloseRenderer: () => `\
-
-`,
+ tabsCloseRenderer: () => ``,
tabOpenRenderer: ({ index }) =>
- `\
-
-`,
+ ``,
- tabCloseRenderer: () => `\
-
-`,
+ tabCloseRenderer: () => ``,
})
}