@ng-doc/utils 16.13.1 → 16.15.0

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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. 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
- if (node.tagName === 'pre' && node.children?.some(child => child.tagName === 'code')) {
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-doc/utils",
3
- "version": "16.13.1",
3
+ "version": "16.15.0",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "rehype": "12.0.1",