inokawa / remark-docx

remark plugin to compile markdown to docx (Microsoft Word, Office Open XML).
https://inokawa.github.io/remark-docx/
MIT License
37 stars 13 forks source link

Footnotes refactor #35

Closed hgodinho closed 1 year ago

hgodinho commented 1 year ago

Hello there!

Here is my suggest to support footnotes. Still has limitations in inline footnotes, as mdast is returning a text type and not a footnote type.

I also added a .editorconfig to avoid messing up with your code, as my vscode is configured to use tab_width = 4.

inokawa commented 1 year ago

@hgodinho Could you update snapshot of test for footnotes? Thank you for your PR!

hgodinho commented 1 year ago

never used snapshot before, nice discovery!

hgodinho commented 1 year ago

in my machine the problem is in the latex spec, that goes beyond my knowledge =/