You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned by @azu we can use textlint-util-to-string:
I always use textlint-util-to-string for extracting text content from TxtParentNode.
It picks each children nodes's value and joins these.
(It aims to pick values that are displayed as rendering result)
Currently, we are using a regular expression to extract the header text from the raw value:
textlint-rule-title-case/index.js
Line 6 in 89e4cd6
The issue is that the format
# Title
is specific to Markdown and won't work when using with an AsciiDoc document.We can either update the regular expression to use either
#
or=
but I think it would be better to extract the header text from the children no?The text was updated successfully, but these errors were encountered: