We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e39ff72 commit b3ab4b9Copy full SHA for b3ab4b9
lib/include-code-extension.js
@@ -30,7 +30,7 @@ function createExtensionGroup (context) {
30
if (!langs.length) return log(doc, 'warn', `no search locations defined for include-code::${target}[]`)
31
const cursor = doc.getReader().$cursor_at_mark()
32
tabsEnabled ??= doc.getExtensions().hasBlocks() && !!doc.getExtensions().getBlockFor('tabs', 'example')
33
- const attrsStr = Object.entries(attrs).filter(([n, v]) => n != 'title').reduce((buf, [n, v]) => `${buf}${buf ? ',' : ''}${n}=${v}`, '')
+ const attrsStr = Object.entries(attrs).filter(([n, v]) => n !== 'title').reduce((buf, [n, v]) => `${buf}${buf ? ',' : ''}${n}=${v}`, '')
34
const sectionId = (nearest(parent, 'section') || doc).getId()
35
const relativeIdPath = sectionId
36
? sectionId.replaceAll('-', '').replaceAll('.', '/') + '/' + sanitizedTarget
0 commit comments