@rsuite/document-nav
Advanced tools
Comparing version 1.0.13 to 1.0.14-alpha
{ | ||
"name": "@rsuite/document-nav", | ||
"version": "1.0.13", | ||
"version": "1.0.14-alpha", | ||
"description": "Document navigation is automatically generated based on the HTML title (h1-h6) tag", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -10,2 +10,3 @@ // @flow | ||
import NavContext, { NavItemContext } from './NavContext'; | ||
import { getInnerText } from './utils/innerText'; | ||
@@ -181,3 +182,3 @@ type Props = { | ||
if (/^H[1-6]/.test(type)) { | ||
const title = node.innerText || ''; | ||
const title = getInnerText(node) || ''; | ||
const anchor = node.id || title; | ||
@@ -184,0 +185,0 @@ node.id = anchor; |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
51942
24
1186
2