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

Markdown preview in terminal #740

Closed
kachick opened this issue Aug 13, 2024 · 5 comments · Fixed by #758
Closed

Markdown preview in terminal #740

kachick opened this issue Aug 13, 2024 · 5 comments · Fixed by #758
Labels
enhancement New feature or request

Comments

@kachick
Copy link
Owner

kachick commented Aug 13, 2024

Needed if I prefer terminal based solution like zk in #729

https://github.com/jgm/pandoc
zyedidia/micro#2994
https://github.com/weebi/micro-preview => hardcoded to depend pandoc, named with generic preview but markdown only supporting
charmbracelet/glow#560
https://github.com/swsnr/mdcat => Working fine in pipe, but no table support swsnr/mdcat#2
https://github.com/zyedidia/micro/blob/master/runtime/help/plugins.md
https://github.com/kivikakk/comrak => Great to generate HTML easier than pandoc, however render the HTML in terminal requires chawan/w3m/lynx
https://github.com/watchexec/watchexec
https://github.com/nhn/tui.editor

@kachick kachick added the enhancement New feature or request label Aug 13, 2024
@kachick kachick changed the title Markdown preview in micro editor Markdown preview in TUI editor Aug 16, 2024
@kachick
Copy link
Owner Author

kachick commented Aug 16, 2024

I'm also okay for Helix, but looks in similar phase helix-editor/helix#11325

kachick added a commit that referenced this issue Aug 17, 2024
- Windows configuration is not yet shared with Linux. Because of using Nix to edit them
- Enable zellij keybindings by default again
- Refine hardcoded micro editor dependent packages with $EDITOR
- This change will relate to GH-740
@kachick
Copy link
Owner Author

kachick commented Aug 21, 2024

chawan said having markdown preview feature, but converting as this looks better 🤔

curl -sLO https://raw.githubusercontent.com/sindresorhus/github-markdown-css/main/github-markdown.css && pandoc --standalone --from gfm --to html --css ./github-markdown.css README.md > README.html && cha -- ./README.html

kachick added a commit that referenced this issue Aug 21, 2024
@kachick
Copy link
Owner Author

kachick commented Aug 24, 2024

https://github.com/yusukebe/gh-markdown-preview - heavy in console, accessing to GitHub API
https://github.com/Inlyne-Project/inlyne - looks good... except open another window

@kachick
Copy link
Owner Author

kachick commented Aug 24, 2024

Cannot get buffer/filename in Helix? helix-editor/helix#3134

@kachick
Copy link
Owner Author

kachick commented Aug 24, 2024

@kachick kachick changed the title Markdown preview in TUI editor Markdown preview in terminal Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant