Chris Vogel @me@chrichri.ween.de

not yet

matrix

@chrichri:librem.one

intent

no sarcasm, no irony

  • Notes
  • Articles
  • Remote follow

Writing #microblogpub articles using ReText

Dec 08, 2022

This I wrote in ReText - "a simple but powerful editor for Markdown and reStructuredText markup languages."

For an article I usually do not find the time to write it in one session and I prefer to have an option to save my text and restart later.

Furthermore I'm not a #Markdown hero and often produce syntax errors leading to unreadable documents. I love to have a preview.

Since microblog.pub does not support saving drafts, editing existing posts or previewing posts, yet, I looked for an editor for Markdown and found #ReText.

Typing this I have a preview in the right part of the window showing my text formatted using the css of microblog.pub.

Want to try it? Here's a quick start:

  • Install ReText however you'll do that on your computer (for Debian there's a package offered: sudo apt-get install retext).
  • Copy the file main.css from the static folder of your microblogpub installation (in #yunohost mine is located at /opt/yunohost/microblogpub/microblogpub/app/static/css/main.css) to ~/.config/ReText\ project/. I renamed mine to microblogpub.css.
  • Start ReText once to let it fill the configuration file with its default settings.
  • End ReText
  • vi ~/.config/ReText\ project/ReText.conf to change the configuration. Here's mine as an example:
[General]
defaultPreviewState=live-preview
editorFont=Monospace
editorFontSize=14
saveWindowGeometry=true
styleSheet=/home/YOUR_USERNAME/.config/ReText project/microblogpub.css
tabInsertsSpaces=false
useWebKit=true

You need to replace YOUR_USERNAME in the above example to point styleSheet to the file in your home-directory.

retext/configuration.md at master ยท retext-project/retext GitHub
Screenshot showing my retext window (in german) with the live preview of my microblogpub css in the right window half.
  • permalink
  • interact from your instance
  • 1 share
Shares
@chrichri@social.librem.one
Powered by microblog.pub 2.0.0+ynh1 and the ActivityPub protocol. Admin.