Skip to content
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

feat: save files as markdown #341

Merged
merged 16 commits into from
Aug 16, 2023
Merged

feat: save files as markdown #341

merged 16 commits into from
Aug 16, 2023

Conversation

sehyod
Copy link
Collaborator

@sehyod sehyod commented Aug 14, 2023

Closes #214

This adds an item Save File as Markdown... in the File menu. This opens a dialog to select where to save the file (the default location is an exports directory under the RefStudio project directory). If there are references in the file, this also creates a .bib file with the same name and exports used references in this file.

This also disables default bullet lists and ordered lists because they would not be properly exported. However, this PR also adds a first implementation of bullet list, that should work as expected. order lists will be done in a future PR

@codecov
Copy link

codecov bot commented Aug 14, 2023

Codecov Report

Merging #341 (d1b2c63) into main (e4bcd3e) will decrease coverage by 0.57%.
The diff coverage is 75.79%.

@@            Coverage Diff             @@
##             main     #341      +/-   ##
==========================================
- Coverage   84.94%   84.37%   -0.57%     
==========================================
  Files         153      157       +4     
  Lines        8819     9344     +525     
  Branches      973     1014      +41     
==========================================
+ Hits         7491     7884     +393     
- Misses       1317     1449     +132     
  Partials       11       11              
Files Changed Coverage Δ
src/application/components/MainPanel.tsx 0.00% <0.00%> (ø)
src/application/views/TextView.tsx 0.00% <0.00%> (ø)
src/features/textEditor/editor/TipTapView.tsx 0.00% <0.00%> (ø)
src/io/filesystem.ts 79.38% <18.66%> (-14.46%) ⬇️
...pTapNodes/notionBlock/commands/toggleBulletList.ts 20.83% <20.83%> (ø)
...Nodes/notionBlock/inputRuleHandlers/dashHandler.ts 31.81% <31.81%> (ø)
...rc/features/textEditor/components/TipTapEditor.tsx 90.38% <60.86%> (-8.42%) ⬇️
...ponents/tipTapNodes/notionBlock/NotionBlockNode.ts 75.49% <91.66%> (+1.32%) ⬆️
...StudioDocument/serialization/MarkdownSerializer.ts 94.36% <94.36%> (ø)
src/atoms/editorActions.ts 97.60% <100.00%> (-0.02%) ⬇️
... and 6 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sehyod sehyod marked this pull request as draft August 14, 2023 13:45
@sehyod sehyod marked this pull request as ready for review August 15, 2023 10:53
@sehyod sehyod requested a review from cguedes August 15, 2023 10:53
@cguedes cguedes self-requested a review August 16, 2023 09:56
@cguedes cguedes merged commit 5bc3dea into main Aug 16, 2023
9 of 11 checks passed
@cguedes cguedes deleted the 214-export-files-as-markdown branch August 16, 2023 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ability to export a file
2 participants