-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
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
footnotes? #33
Comments
I was lookintg at the code, and to implement footnotes it will need to refactor the // definition
const convertNodes = (nodes: mdast.Content[], ctx: Context): DocxContent[] => {
const results: DocxContent[] = [];
const footnotes: any[] = []; // should define more precise type
for (const node of nodes) {
...
logic to push to footnotes
}
return {
nodes: results,
footnotes
}
}
// calling
const { nodes, footnotes } = convertNodes( nodes, ctx ); this way it will be easier to add more functionalities like splitting the documents into more sections, or adding header and footer options in the future. I can try a PR if you like. |
Hi @hgodinho , |
#35 is published in |
Does this mean footnotes were added? |
Yes. It was implemeted but still have limitation described in #35 (comment) , and may have some edge case bugs. |
Describe the solution you'd like
footnotes would be awesome
The text was updated successfully, but these errors were encountered: