@ng-doc/utils 16.14.0 → 16.15.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.
- package/index.js +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -14898,9 +14898,10 @@ function createLinkNode(text, href, type, description) {
|
|
|
14898
14898
|
function markCodeBlocksPlugin() {
|
|
14899
14899
|
return tree => {
|
|
14900
14900
|
visit(tree, 'element', node => {
|
|
14901
|
+
if (node.tagName === 'pre' &&
|
|
14901
14902
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
14902
14903
|
// @ts-ignore
|
|
14903
|
-
|
|
14904
|
+
node.children?.some(child => child.tagName === 'code')) {
|
|
14904
14905
|
if (node.properties) {
|
|
14905
14906
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
14906
14907
|
// @ts-ignore
|