Add export to word - #146
Open
MatejFrnka wants to merge 4 commits into
Open
Conversation
MatejFrnka
marked this pull request as ready for review
August 16, 2026 09:51
Collaborator
Author
|
Review after merging PR #142 |
MatejFrnka
force-pushed
the
feature/72-word-export
branch
from
August 17, 2026 19:46
aef7481 to
2ad681e
Compare
hranasit
reviewed
Aug 18, 2026
| @@ -0,0 +1,140 @@ | |||
| import { useEffect, useRef, useState } from 'react' | |||
Collaborator
| @@ -1,43 +1,30 @@ | |||
| import { useCallback, useState } from 'react' | |||
Collaborator
| @@ -0,0 +1,54 @@ | |||
| .root { | |||
Collaborator
There was a problem hiding this comment.
Regarding the custom implementation, are you sure that all of the concepts that can occur in the md/word are implemented?
Collaborator
Author
There was a problem hiding this comment.
Not everything is supported, for example. Images are not supported since they cannot be generated by the LLM anyway. I will check all the core features like tables, headings, lists, sublists, ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Ended up writing custom logic for markdown to word conversion. This is not ideal, but I prefer it over the following other options:
Based on this, I ended up implementing a simple convertor using two estabilished libraries (one for parsing md, one for editing docx).
closes #72