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.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to current code...
free-programming-books-parser/index.js
Lines 192 to 212 in 5eaf00b
it seems that the parser not supports HTML anchor aliases neither Markdown syntax. It takes for granted that childrens[0] will be plain text.
childrens[0]
It's necesary make a ES6 Array.reduce of the heading item.children taking into account all cases in order to rebuild the desired text. Cases type:
item.children
type
html
link
text
emphasis
_
strong
**
The text was updated successfully, but these errors were encountered:
improve section name extraction from heading content
8ab1afc
fixes EbookFoundation#2
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
According to current code...
free-programming-books-parser/index.js
Lines 192 to 212 in 5eaf00b
it seems that the parser not supports HTML anchor aliases neither Markdown syntax. It takes for granted that
childrens[0]
will be plain text.It's necesary make a ES6 Array.reduce of the heading
item.children
taking into account all cases in order to rebuild the desired text. Casestype
:html
,link
: ignore record. maybe an anchor alias or a back to top/upper section linktext
: append valueemphasis
: append children values wrapping between_
(italic Markdown tokens)strong
: append children values wrapping between**
(bold Markdown tokens)The text was updated successfully, but these errors were encountered: