The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 11,544β€…    Votes:  4β€…
Tags: libreoffice   automation   text-editor   github   markdown  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

Title: Is there a markdown "rich text" editor?
ID: /2019/11/21/Is-there-a-markdown-_rich-text_-editor_
Created: November 21, 2019    Edited:  November 23, 2019
Upload: September 20, 2023    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false

You can still use LO Writer with pandoc

Because LibreOffice supports MS Word .doc files, this popular answer from Stack Exchange might work for you:

Pandoc supports conversion from docx to markdown directly:

pandoc -f docx -t markdown foo.docx -o foo.markdown  

Several markdown formats are supported:

-t gfm (GitHub-Flavored Markdown)  
-t markdown_mmd (MultiMarkdown)  
-t markdown (pandoc’s extended Markdown)  
-t markdown_strict (original unextended Markdown)  
-t markdown_phpextra (PHP Markdown Extra)  
-t commonmark (CommonMark Markdown)  

It also supports LibreOffice native .odt format as illustrated in these 30 examples.

DOCX style sheets are supported better than ODT style sheets

As a github reference page notes in: Defining custom DOCX styles in LibreOffice (and Word)

In case you wonder LibreOffice handles DOCX documents very well, and
Pandoc works well with a reference docx file which has been
modified in LibreOffice. This is good because as of Pandoc
DOCX support is superior to ODT support in Pandoc, notably including
the custom-style attribute feature which doesn’t work for ODT.

Visit this github page for all kinds of great tips using pandoc.

Try it online before installing

You can try the pandoc online conversion tool before installing locally.

⇧ What is the difference between "cat < filename" and "cat filename"? How to get Processor ID from any linux command  β‡©