Everyone and their dog knows how to.use Markdown, since Wikipedia etc have made these formats popular. Those who know HTML will learn it in a second flat. And those who know neither will find it way easier to learn than HTML. <br><br>Therefore, seconded<br><br>Sent from my mobile. Please forgive shortness, typos and weird autocorrects.<div class="quote" style="line-height: 1.5"><br><br>-------- Original Message --------<br>Subject: Re: [xiphos-devel] that blasted editor<br>From: Greg Hellings <greg.hellings@gmail.com><br>To: Dominique Corbex <dominique@corbex.org><br>CC: Xiphos developers <xiphos-devel@crosswire.org><br><br><br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 18, 2020 at 2:40 AM Dominique Corbex &lt;<a href="mailto:dominique@corbex.org">dominique@corbex.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, 17 Apr 2020 18:32:31 -0500<br>
Greg Hellings &lt;<a href="mailto:greg.hellings@gmail.com" target="_blank">greg.hellings@gmail.com</a>&gt; wrote:<br>
<br>
&gt; If formatting is really our concern, maybe we abandon HTML editing<br>
&gt; altogether? Perhaps a MarkDown compatible editor that will wriggle back and<br>
&gt; forth to the HTML displays in a text?<br>
<br>
&gt; I would strongly suggest considering that.<br>
<br>
+1 <br>
<br>
I&#39;m using marker myself<br>
<a href="https://github.com/fabiocolacio/Marker" rel="noreferrer" target="_blank">https://github.com/fabiocolacio/Marker</a></blockquote><div><br></div><div>I had seen that. It doesn&#39;t have any helper buttons, but I imagine we could add one for the most basic things:</div><div><br></div><div>Going through the editor UI as it currently exists:</div><div><br></div><div>* Bold/italic/underline/strikethrough are pretty simple in Markdown</div><div>* Headings are easy<br></div><div>* Insert an image is also very straightforward.</div><div>* Font color/size is a bit harder</div><div>* Horizontal rule is very simple as well</div><div>* Links are pretty trivial</div><div><br></div><div>Tables are the only one that&#39;s moderately complex that we currently have but wouldn&#39;t have in Markdown.</div><div><br></div><div>Going from MD to HTML is easy. Lots of markdown libraries exist. CMake seems one that&#39;s already packaged for Fedora and has official MinGW build support, so putting together a package for it seems trivial. <a href="https://github.com/commonmark/cmark">https://github.com/commonmark/cmark</a></div><div><br></div><div>Making the trip back from HTML to MD is a bit more complicated. There is pandoc (<a href="https://pandoc.org/">https://pandoc.org/</a>) which is written in Haskell and has a C binding that supports ALL THE FORMATS and includes the ability to go both directions. It does build for Windows - there are official builds released by the pandoc folk. There is no reason to suspect a cross-compile chain couldn&#39;t be created, but that&#39;s a lot of moving parts to put together. Maybe it&#39;s best to include a working binary and pass temp files to it, rather than try to include it as a library?<br></div><div><br></div><div>--Greg<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
Dom<br>
-- <br>
domcox &lt;<a href="mailto:dominique@corbex.org" target="_blank">dominique@corbex.org</a>&gt;<br>
</blockquote></div></div>
</blockquote></div>