Re: Markdown previewer
Celejar wrote: > > This is pretty much what I use - I have the following snippet > in .config/mc/mc.ext : > > # Markdown > shell/i/.md > View=pandoc %f | lynx -stdin > > Not quite a GUI, but close ;) > Thanks, that is a good idea for mutt's mailcap: text/markdown; pandoc %s | lynx -stdin -assume_local_charset=UTF-8 -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet signature.asc Description: PGP signature
Re: Markdown previewer
Tom Browder wrote: > On Wed, Mar 17, 2021 at 05:56 Victor Sudakov wrote: > ... > > > I have an account on Github, but nothing beats clicking a document in > > Thunar or Thunderbird to open it for viewing. You don't even have to be > > online for that. > > > Great for your usage, Victor, but for my common workflow, I write Markdown > for Raku modules and other code on my local Debian server accessed via an > xterm on my iPad, so Github functions as my Linux monitor! There are very exotic use cases indeed. > > > > P.S. Do you know the excellent Perl developer and astronomer Sergey > Krushinsky? No, I don't have the honour. -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet signature.asc Description: PGP signature
Re: Markdown previewer
to...@tuxteam.de wrote: > On Wed, Mar 17, 2021 at 05:21:49PM +0700, Victor Sudakov wrote: > > [...] > > > I could write a script which would convert Markdown documents to HTML > > and then call Firefox on the result, but I'm surprised there is no MD > > viewer like xdvi or qpdfview. > > This may be due to the fact that, if you look closely, Markdown is > a monster. > > There are many variants, a significant subset of them allows a varying > subset of HTML (which one?) as an extension, and quite a few are just > specified by some single implementation. > > It is one of those extremely interesting cases where a clear strength > (simplicity, under-specification: thus I can hack something together > over a weekend in Perl; since I'm rendering to HTML anyway, if table > support isn't enough... well, duh, I can pass-through tables and so > on) can turn around. > > Note that I am *not* judging. This simplicity and underspecification > *is a strength* (I /love/ Org Mode), but it is also a weakness. You > seem to be running into the latter :-) > > Have a look at [1]. Does it remind you of [2]? I'm actually surprised by the recent proliferation of similar markup languages. Was it Wikipedia who started the trend? OTOH, when I was younger, I encountered troff and DocBook and Texinfo and of course LaTeX and lout (do you remember lout?). So there have probably always been many of them. -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet signature.asc Description: PGP signature
Re: Markdown previewer
riveravaldez wrote: > On ..., Victor Sudakov wrote: > > Dear Colleagues, > > > > Can you please advise a good GUI Markdown previewer? [dd] > > Доброе утро, товарищ Виктор! ;) > > If I recall correctly, Ghostwriter is designed towards writing/editing > markdown > text with a real-time almost-identical rendering preview, Привет, коллега! Ghostwriter понравился, спасибо! Ghostwriter looks nice, especially when "Pandoc Github-flavored Markdown" is selected. Thanks for the hint. > > Добрые пожелания из Аргентины! > От фаната Гены и Юрия Норштейнов. ;) > Великий режиссер! -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet signature.asc Description: PGP signature
Re: Markdown previewer
On ..., Victor Sudakov wrote: > Dear Colleagues, > > Can you please advise a good GUI Markdown previewer? > > Many editors (vim, mousepad) can highlight Markdown syntax, but it's a > different matter. I'd like the previewer to display rendered Markdown > nicely with fonts, hyperlinks, numbered lists etc. (...) > I would actually like some lightweight GUI viewer I could associate with > the .md extention and view Markdown files from Thunar. (...) > nothing beats clicking a document in Thunar or Thunderbird to open it > for viewing. You don't even have to be online for that. Доброе утро, товарищ Виктор! ;) If I recall correctly, Ghostwriter is designed towards writing/editing markdown text with a real-time almost-identical rendering preview, but still letting you see the actual "code". So, from your description, maybe something like Formiko in preview-mode (`formiko -p file_name`) will do the trick - and it's in the official Debian repos. Hope this serves your purpose. Добрые пожелания из Аргентины! От фаната Гены и Юрия Норштейнов. ;)
Re: Markdown previewer
On 18-03-2021 04:38, Gilles Mocellin wrote: > Le mercredi 17 mars 2021, 07:30:36 CET Victor Sudakov a écrit : > >> Dear Colleagues, > >> > >> Can you please advise a good GUI Markdown previewer? > >> > >> Many editors (vim, mousepad) can highlight Markdown syntax, but it's > a > >> different matter. I'd like the previewer to display rendered > Markdown > >> nicely with fonts, hyperlinks, numbered lists etc. > Hello ! > A light weight one is Remarkable : > > https://remarkableapp.github.io/linux.html Yes, that looks good. Thanks. -- `The World is not dangerous because of those who do harm but because of those who look on without doing anything'. -- Albert Einstein
Re: Markdown previewer
Le mercredi 17 mars 2021, 07:30:36 CET Victor Sudakov a écrit : > Dear Colleagues, > > Can you please advise a good GUI Markdown previewer? > > Many editors (vim, mousepad) can highlight Markdown syntax, but it's a > different matter. I'd like the previewer to display rendered Markdown > nicely with fonts, hyperlinks, numbered lists etc. Hello ! A light weight one is Remarkable : https://remarkableapp.github.io/linux.html[1] [1] https://remarkableapp.github.io/linux.html
Re: Markdown previewer
On 17-03-2021 22:10, Celejar wrote: > On Wed, 17 Mar 2021 17:40:19 +0700 > Victor Sudakov wrote: > >> Weaver wrote: >> > >> Can you please advise a good GUI Markdown previewer? >> > >> >> > >> Many editors (vim, mousepad) can highlight Markdown syntax, but it's a >> > >> different matter. I'd like the previewer to display rendered Markdown >> > >> nicely with fonts, hyperlinks, numbered lists etc. >> > >> >> > > VSCodium (https://vscodium.com) can do a good job of this, and is a >> > > popular all-purpose IDE. Simply open the Markdown file and press Ctrl+K, >> > > V to get a live side-by-side preview. >> > > >> > > If you want something command-line based, then you need to convert the >> > > Markdown code to code that some other renderer will understand. Pandoc >> > > (https://packages.debian.org/buster/pandoc) can do that for you with a >> > > simple "pandoc -o README.html README.md" or "pandoc -o README.pdf >> > > README.md" etc. >> > >> > Or, at the other end of the spectrum, you might like to try out Typora. >> > Cheers! >> >> Looks nice, thank you. I did not quite understand however, is it a >> commercial software, non-free? > > Yes: > > https://support.typora.io/License-Agreement/ > https://snapcraft.io/typora Right! I realised afterward, I had downloaded it, but obviously conditions have changed. None of this was obvious then. I just downloaded the beta from here: https://typora.io/#linux Once it's in your apt.sources list, it pulls in all the pandoc and other packages required (a considerable number). But the amount of space and the loading time I didn't like, so uninstalled it. I have still to check out ghostwriter. Cheers! Harry > > Celejar -- `The World is not dangerous because of those who do harm but because of those who look on without doing anything'. -- Albert Einstein
Re: Markdown previewer
I use emacs and followed the steps outlined here: https://gist.github.com/fredRos/0e3a845de95ec654538f then, using C-c C-c v will export and preview the file in the default browser, in my case Firefox. The suggested CSS file is a close approximation of GitHub flavored Markdown. I would guess that a custom CSS file could be used for whatever style is desired. - Nate -- "The optimist proclaims that we live in the best of all possible worlds. The pessimist fears this is true." Web: https://www.n0nb.us Projects: https://github.com/N0NB GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819 signature.asc Description: PGP signature
Re: Markdown previewer
On Wed, 17 Mar 2021 17:55:56 +0700 Victor Sudakov wrote: > Tom Browder wrote: > > On Wed, Mar 17, 2021 at 01:31 Victor Sudakov wrote: > > > Can you please advise a good GUI Markdown previewer? > > > > > > A cheap and very useful way to do so is to establish a free account on > > Github, create a repository for your work, and start creating Markdown in a > > browser. > > Hello Tom, > > I have an account on Github, but nothing beats clicking a document in > Thunar or Thunderbird to open it for viewing. You don't even have to be > online for that. > > > > > Fork the repository onto your computer, create or modify Markdown files, > > commit them and push them to Github, and view them in a browser. > > If I have to view them in a browser, I'd rather use pandoc with a > wrapper script. This can be done quickly without pushing code to Github. This is pretty much what I use - I have the following snippet in .config/mc/mc.ext : # Markdown shell/i/.md View=pandoc %f | lynx -stdin Not quite a GUI, but close ;) Celejar
Re: Markdown previewer
On Wed, 17 Mar 2021 17:40:19 +0700 Victor Sudakov wrote: > Weaver wrote: > > >> Can you please advise a good GUI Markdown previewer? > > >> > > >> Many editors (vim, mousepad) can highlight Markdown syntax, but it's a > > >> different matter. I'd like the previewer to display rendered Markdown > > >> nicely with fonts, hyperlinks, numbered lists etc. > > >> > > > VSCodium (https://vscodium.com) can do a good job of this, and is a > > > popular all-purpose IDE. Simply open the Markdown file and press Ctrl+K, > > > V to get a live side-by-side preview. > > > > > > If you want something command-line based, then you need to convert the > > > Markdown code to code that some other renderer will understand. Pandoc > > > (https://packages.debian.org/buster/pandoc) can do that for you with a > > > simple "pandoc -o README.html README.md" or "pandoc -o README.pdf > > > README.md" etc. > > > > Or, at the other end of the spectrum, you might like to try out Typora. > > Cheers! > > Looks nice, thank you. I did not quite understand however, is it a > commercial software, non-free? Yes: https://support.typora.io/License-Agreement/ https://snapcraft.io/typora Celejar
Re: Markdown previewer
On 2021-03-17 06:30, Victor Sudakov wrote: Dear Colleagues, Can you please advise a good GUI Markdown previewer? Many editors (vim, mousepad) can highlight Markdown syntax, but it's a different matter. I'd like the previewer to display rendered Markdown nicely with fonts, hyperlinks, numbered lists etc. If you don't hate Microsoft, then I have found that the the markdown editor plugin for VSCode works very nicely. You get two side by side panes, one a monospace text editor for the markdown with syntax highlighting, and next to it a live preview of rendered markdown. The editor includes a syntax checker. To view my markdown, I added mod-markdown [1] to my Apache2 setup. [1] https://github.com/hamano/apache-mod-markdown -- David Pottage
Re: Markdown previewer
On 17-03-2021 20:40, Victor Sudakov wrote: > Weaver wrote: >> >> Can you please advise a good GUI Markdown previewer? >> >> >> >> Many editors (vim, mousepad) can highlight Markdown syntax, but it's a >> >> different matter. I'd like the previewer to display rendered Markdown >> >> nicely with fonts, hyperlinks, numbered lists etc. >> >> >> > VSCodium (https://vscodium.com) can do a good job of this, and is a >> > popular all-purpose IDE. Simply open the Markdown file and press Ctrl+K, >> > V to get a live side-by-side preview. >> > >> > If you want something command-line based, then you need to convert the >> > Markdown code to code that some other renderer will understand. Pandoc >> > (https://packages.debian.org/buster/pandoc) can do that for you with a >> > simple "pandoc -o README.html README.md" or "pandoc -o README.pdf >> > README.md" etc. >> >> Or, at the other end of the spectrum, you might like to try out Typora. >> Cheers! > > Looks nice, thank you. I did not quite understand however, is it a > commercial software, non-free? Just did a quick search, and it no longer appears to be in the repositories. Ghostwriter might be another alternative. That's available. Cheers! Harry -- `The World is not dangerous because of those who do harm but because of those who look on without doing anything'. -- Albert Einstein
Re: Markdown previewer
On Wed, Mar 17, 2021 at 05:56 Victor Sudakov wrote: ... > I have an account on Github, but nothing beats clicking a document in > Thunar or Thunderbird to open it for viewing. You don't even have to be > online for that. Great for your usage, Victor, but for my common workflow, I write Markdown for Raku modules and other code on my local Debian server accessed via an xterm on my iPad, so Github functions as my Linux monitor! Best regards, -Tom P.S. Do you know the excellent Perl developer and astronomer Sergey Krushinsky?
Re: Markdown previewer
On Wed, Mar 17, 2021 at 05:21:49PM +0700, Victor Sudakov wrote: [...] > I could write a script which would convert Markdown documents to HTML > and then call Firefox on the result, but I'm surprised there is no MD > viewer like xdvi or qpdfview. This may be due to the fact that, if you look closely, Markdown is a monster. There are many variants, a significant subset of them allows a varying subset of HTML (which one?) as an extension, and quite a few are just specified by some single implementation. It is one of those extremely interesting cases where a clear strength (simplicity, under-specification: thus I can hack something together over a weekend in Perl; since I'm rendering to HTML anyway, if table support isn't enough... well, duh, I can pass-through tables and so on) can turn around. Note that I am *not* judging. This simplicity and underspecification *is a strength* (I /love/ Org Mode), but it is also a weakness. You seem to be running into the latter :-) Have a look at [1]. Does it remind you of [2]? Cheers [1] https://en.wikipedia.org/wiki/Markdown [2] https://xkcd.com/927/ - t signature.asc Description: Digital signature
Re: Markdown previewer
Tom Browder wrote: > On Wed, Mar 17, 2021 at 01:31 Victor Sudakov wrote: > > Can you please advise a good GUI Markdown previewer? > > > A cheap and very useful way to do so is to establish a free account on > Github, create a repository for your work, and start creating Markdown in a > browser. Hello Tom, I have an account on Github, but nothing beats clicking a document in Thunar or Thunderbird to open it for viewing. You don't even have to be online for that. > > Fork the repository onto your computer, create or modify Markdown files, > commit them and push them to Github, and view them in a browser. If I have to view them in a browser, I'd rather use pandoc with a wrapper script. This can be done quickly without pushing code to Github. -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet signature.asc Description: PGP signature
Re: Markdown previewer
On Wed, Mar 17, 2021 at 01:31 Victor Sudakov wrote: > Can you please advise a good GUI Markdown previewer? A cheap and very useful way to do so is to establish a free account on Github, create a repository for your work, and start creating Markdown in a browser. Fork the repository onto your computer, create or modify Markdown files, commit them and push them to Github, and view them in a browser. A repo may be public or private. Best regards, -Tom
Re: Markdown previewer
Weaver wrote: > >> Can you please advise a good GUI Markdown previewer? > >> > >> Many editors (vim, mousepad) can highlight Markdown syntax, but it's a > >> different matter. I'd like the previewer to display rendered Markdown > >> nicely with fonts, hyperlinks, numbered lists etc. > >> > > VSCodium (https://vscodium.com) can do a good job of this, and is a > > popular all-purpose IDE. Simply open the Markdown file and press Ctrl+K, > > V to get a live side-by-side preview. > > > > If you want something command-line based, then you need to convert the > > Markdown code to code that some other renderer will understand. Pandoc > > (https://packages.debian.org/buster/pandoc) can do that for you with a > > simple "pandoc -o README.html README.md" or "pandoc -o README.pdf > > README.md" etc. > > Or, at the other end of the spectrum, you might like to try out Typora. > Cheers! Looks nice, thank you. I did not quite understand however, is it a commercial software, non-free? -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet signature.asc Description: PGP signature
Re: Markdown previewer
billium wrote: > > On 17/03/2021 06:30, Victor Sudakov wrote: > > > Can you please advise a good GUI Markdown previewer? > > > > > > If you are on KDE there is ReText. > This one looks good. However, in rendered mode, lines with code are indistinguishable from regular text (I expected a monospace font to be used for code, or something like this). Do you have this problem? -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet signature.asc Description: PGP signature
Re: Markdown previewer
Darac Marjal wrote: > > > > > Can you please advise a good GUI Markdown previewer? > > > > Many editors (vim, mousepad) can highlight Markdown syntax, but it's a > > different matter. I'd like the previewer to display rendered Markdown > > nicely with fonts, hyperlinks, numbered lists etc. > > > VSCodium (https://vscodium.com) can do a good job of this, and is a > popular all-purpose IDE. Simply open the Markdown file and press Ctrl+K, > V to get a live side-by-side preview. Oh now, installing a whole IDE to view Markdown files is an overkill. > > If you want something command-line based, then you need to convert the > Markdown code to code that some other renderer will understand. Pandoc > (https://packages.debian.org/buster/pandoc) can do that for you with a > simple "pandoc -o README.html README.md" or "pandoc -o README.pdf > README.md" etc. > Thank you for the hint about pandoc, but I would actually like some lightweight GUI viewer I could associate with the .md extention and view Markdown files from Thunar. I could write a script which would convert Markdown documents to HTML and then call Firefox on the result, but I'm surprised there is no MD viewer like xdvi or qpdfview. -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet signature.asc Description: PGP signature
Re: Markdown previewer
On 17/03/2021 08:34, Darac Marjal wrote: On 17/03/2021 06:30, Victor Sudakov wrote: Dear Colleagues, Can you please advise a good GUI Markdown previewer? Many editors (vim, mousepad) can highlight Markdown syntax, but it's a different matter. I'd like the previewer to display rendered Markdown nicely with fonts, hyperlinks, numbered lists etc. VSCodium (https://vscodium.com) can do a good job of this, and is a popular all-purpose IDE. Simply open the Markdown file and press Ctrl+K, V to get a live side-by-side preview. If you want something command-line based, then you need to convert the Markdown code to code that some other renderer will understand. Pandoc (https://packages.debian.org/buster/pandoc) can do that for you with a simple "pandoc -o README.html README.md" or "pandoc -o README.pdf README.md" etc. If you are on KDE there is ReText.
Re: Markdown previewer
On 17-03-2021 18:34, Darac Marjal wrote: > On 17/03/2021 06:30, Victor Sudakov wrote: >> Dear Colleagues, >> >> Can you please advise a good GUI Markdown previewer? >> >> Many editors (vim, mousepad) can highlight Markdown syntax, but it's a >> different matter. I'd like the previewer to display rendered Markdown >> nicely with fonts, hyperlinks, numbered lists etc. >> > VSCodium (https://vscodium.com) can do a good job of this, and is a > popular all-purpose IDE. Simply open the Markdown file and press Ctrl+K, > V to get a live side-by-side preview. > > If you want something command-line based, then you need to convert the > Markdown code to code that some other renderer will understand. Pandoc > (https://packages.debian.org/buster/pandoc) can do that for you with a > simple "pandoc -o README.html README.md" or "pandoc -o README.pdf > README.md" etc. Or, at the other end of the spectrum, you might like to try out Typora. Cheers! Harry -- `The World is not dangerous because of those who do harm but because of those who look on without doing anything'. -- Albert Einstein
Re: Markdown previewer
On 17/03/2021 06:30, Victor Sudakov wrote: > Dear Colleagues, > > Can you please advise a good GUI Markdown previewer? > > Many editors (vim, mousepad) can highlight Markdown syntax, but it's a > different matter. I'd like the previewer to display rendered Markdown > nicely with fonts, hyperlinks, numbered lists etc. > VSCodium (https://vscodium.com) can do a good job of this, and is a popular all-purpose IDE. Simply open the Markdown file and press Ctrl+K, V to get a live side-by-side preview. If you want something command-line based, then you need to convert the Markdown code to code that some other renderer will understand. Pandoc (https://packages.debian.org/buster/pandoc) can do that for you with a simple "pandoc -o README.html README.md" or "pandoc -o README.pdf README.md" etc. OpenPGP_signature Description: OpenPGP digital signature
Markdown previewer
Dear Colleagues, Can you please advise a good GUI Markdown previewer? Many editors (vim, mousepad) can highlight Markdown syntax, but it's a different matter. I'd like the previewer to display rendered Markdown nicely with fonts, hyperlinks, numbered lists etc. -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet signature.asc Description: PGP signature