DevHeads.net

Markdown editor for CentOS 7?

Hi,

I recently discovered Markdown, and I'm currently using it to write some
documentation for CentOS 7.

<a href="https://github.com/kikinovak/formation-linux" title="https://github.com/kikinovak/formation-linux">https://github.com/kikinovak/formation-linux</a>

For the time being, I'm using my good old Vim editor for writing it. I
turned off syntax highlighting, since this produces random results with
Markdown.

Pages are correctly displayed on Github, but in order to see them, I
have to push them to the server. Now I wonder if there's a good WYSIWYG
editor for Markdown, or at least something where I can check locally
what the page looks like.

Any suggestions?

Niki Kovacs

Comments

Re: Markdown editor for CentOS 7?

By Warren Young at 06/16/2017 - 10:44

On Jun 16, 2017, at 3:27 AM, Nicolas Kovacs < ... at microlinux dot fr> wrote:
I write Markdown in Vim on CentOS 7 with the stock Markdown syntax highlighting rule set regularly, and I have never seen it mark text incorrectly.

What you may be running into here is that there are multiple flavors of Markdown, and some rendering engines are more forgiving of syntax variances than others. The flavor tolerated by the Vim syntax file is fairly strict. If you stick to what it considers acceptable, it should render correctly everywhere.

For example, many Markdown engines tolerate this:

* Bullet item 1
* Bullet item 2

But if you actually read the Markdown spec [1], you will find that the Vim syntax highlighter is right to reject it. It should be:

* Bullet item 1
* Bullet item 2

That is, the text needs to start in the fourth column relative to the bullet.

The Vim Markdown rules also tend not to cope well with nonstandard Markdown extensions like ASCII art tables. (Core Markdown only supports HTML <table>s.)

[1]: <a href="https://daringfireball.net/projects/markdown/syntax" title="https://daringfireball.net/projects/markdown/syntax">https://daringfireball.net/projects/markdown/syntax</a>

I rarely see CentOS’s GUI, much less make enough use of it, but if I had to get a WYSIWYG Markdown view on CentOS, I’d do the same thing I do on Chrome OS: use StackEdit:

<a href="https://stackedit.io" title="https://stackedit.io">https://stackedit.io</a>

Re: Markdown editor for CentOS 7?

By Yamaban at 06/16/2017 - 07:25

First, there are "preview" plugins for vim, you might want to look at them
first:
<a href="https://github.com/suan/vim-instant-markdown" title="https://github.com/suan/vim-instant-markdown">https://github.com/suan/vim-instant-markdown</a>

Other than that, -well, I'm unsure about the availablitlity on Centos7-,
but there are:

* "ReText" (switchable preview) <a href="https://github.com/retext-project/retext" title="https://github.com/retext-project/retext">https://github.com/retext-project/retext</a>
* "Remarkable" (Live previev side by side) <a href="http://remarkableapp.github.io/" title="http://remarkableapp.github.io/">http://remarkableapp.github.io/</a>
* "Atom" (not native, slow) <a href="http://atom.io/" title="http://atom.io/">http://atom.io/</a>
* "Sublime Text" (Pay-ware) <a href="http://www.sublimetext.com/" title="http://www.sublimetext.com/">http://www.sublimetext.com/</a>
* "Typora" (not tested by me) <a href="https://typora.io/" title="https://typora.io/">https://typora.io/</a>
* "Haroopad" (Discontinued) <a href="http://pad.haroopress.com/" title="http://pad.haroopress.com/">http://pad.haroopress.com/</a>
(this list is not in any way complete)

for more info, have a look at the article on tecmint.com:
<a href="https://www.tecmint.com/best-markdown-editors-for-linux/" title="https://www.tecmint.com/best-markdown-editors-for-linux/">https://www.tecmint.com/best-markdown-editors-for-linux/</a>

and on slant.co there is a more up-do-date article:
<a href="https://www.slant.co/topics/2134/~markdown-editors-for-linux" title="https://www.slant.co/topics/2134/~markdown-editors-for-linux">https://www.slant.co/topics/2134/~markdown-editors-for-linux</a>

Another hint: finding packages for progams can be a timeconsuming job,
sites like <a href="https://pkgs.org/" title="https://pkgs.org/">https://pkgs.org/</a> makes it easier.

- Yamaban

Re: Markdown editor for CentOS 7?

By Niki Kovacs at 06/16/2017 - 10:03

Le 16/06/2017 à 13:25, Yamaban a écrit :
Hi,

Thanks very much for your advice! This is a real life-changer for me. I
had to fiddle a couple hours with Node.js and tweaking Vim until
Markdown was handled correctly, but now I have a really nice work
environment for Markdown.

<a href="https://pasteboard.co/f7IluMot.png" title="https://pasteboard.co/f7IluMot.png">https://pasteboard.co/f7IluMot.png</a>

Cheers from the sunny South of France,

Niki Kovacs

Re: Markdown editor for CentOS 7?

By Niki Kovacs at 06/16/2017 - 10:39

Le 16/06/2017 à 16:03, Nicolas Kovacs a écrit :
I wrote a little documentation with some detailed installation
instructions, so others can benefit from this.

<a href="https://github.com/kikinovak/formation-linux/blob/master/cours/Nodejs.md" title="https://github.com/kikinovak/formation-linux/blob/master/cours/Nodejs.md">https://github.com/kikinovak/formation-linux/blob/master/cours/Nodejs.md</a>

<a href="https://github.com/kikinovak/formation-linux/blob/master/cours/Vim-Markdown.md" title="https://github.com/kikinovak/formation-linux/blob/master/cours/Vim-Markdown.md">https://github.com/kikinovak/formation-linux/blob/master/cours/Vim-Markd...</a>

Cheers,

Niki

Re: Markdown editor for CentOS 7?

By Yamaban at 06/16/2017 - 10:50

On Fri, 16 Jun 2017 16:39, Nicolas Kovacs wrote:
Happy to be able to help. For me, the node.js stuff was to complex at the
time I urgendly had to have a markdown-editor, right now, and I ended up
with "Remarkable" for the fiddly stuff, but most of my editing is done in
(g)vim.

But, like most, that have taken a liking to a specific editor,
my id be vim, eclipse, emacs, or else, we are looking in our
most liked environment first. Nice to see it worked for you.

Cheers, and have a nice Weekend,
- Yamaban

Re: Markdown editor for CentOS 7?

By Robert Moskowitz at 06/16/2017 - 08:17

Is geany available for Centos? It works well for markdown, though I use
it for xml and html.

On 06/16/2017 07:25 AM, Yamaban wrote:

Re: Markdown editor for CentOS 7?

By Laurent Wandrebeck at 06/16/2017 - 08:33

Le vendredi 16 juin 2017 à 08:17 -0400, Robert Moskowitz a écrit :
Indeed it is, in EPEL.

HTH,