Atom Markdown editor

This article shows how to install Markpado on Fedora 23 KDE. The steps should also work on any other distribution that’s based on Fedora and uses the KDE desktop environment. To install it on Kubuntu 15.10, see this guide.

Markpado is a lightweight Markdown text editor for KDE. It’s actually a component of Marketo, a note-taking application for KDE. For a list of other Markdown editors that I’ve investigated, see The best Markdown editors for Linux.

Since Markpado is a component of Marketo, this guide really shows how to install Marketo. Markpado is a bonus, and a very nice one. I’m laying emphasis on Markpado because that’s the component I’m most interested in. A text editor with support for Markdown is a better note-taking application than a plain text editor. Note that Marketo has partial support for CommonMark, which is an implementation of and an effort to standardize Markdown.

Markpado is not close to being ready for so-called production use, but if all you need is a resource-friendly Markdown editor, it fits the bill nicely. Just be aware that at this stage, it lacks support for tabs. You do, however, get split-screen live previews, in-place previews, and a rich set of configuration settings.

Figure 1 shows Markpado in use.

Markpado Markdown editor for KDE
Figure 1: Markpado with a split-screen live preview

If you’re looking for a lightweight Markdown editor and like what you’ve read so far, keep reading to learn how to install Marketo (and Markpado).

Related Post:  How to install ZNC on Fedora 23

Markpado and its dependencies have to be compiled from source, so fire up a shell terminal and let’s get started.

Step 1Install Libmdcpp
Libmdcpp is the main dependency you need to install. It’s a Markdown implementation forked from cpp-markdown, and has to be compiled from source. Libmdcpp has some dependencies of its own, so let’s install them first using the following command.


# This is a comment. Run the next line as root in your shell terminal

dnf install gcc-c++ boost-devel cmake git

#

After that’s completed, clone and compile libmdcpp using the following commands:


# This is a comment. Copy and paste lines without comments in your shell terminal 
# Only the last command requires root privileges
 
# Clone the repository from GitHub
git clone https://github.com/sadhen/libmdcpp

# Change into the new directory
cd libmdcpp

# Inside the directory, create another directory and change into it
mkdir build && cd build

# Compile the code
# if you do not specify CMAKE_INSTALL_PREFIX
# the library will be installed in /usr/local
cmake -DCMAKE_INSTALL_PREFIX=/usr ..

# Perform all necessary recompilations
make

# Install it (as root).
make install

#

Step 2Install Other Dependencies
If you did not get any errors from compiling libmdcpp, you may now install the other dependencies using the following command:


# This is a comment. Copy and paste the next line in your shell terminal as root

dnf install kf5-ktexteditor-devel kf5-kdelibs4support-devel kf5-kxmlgui-devel kf5-kcoreaddons-devel \
kf5-kdewebkit-devel kf5-ki18n-devel 

#

Step 3Install Marketo and Markpado
In this third and final step, you’ll now compile Marketo/Markpado using the follow commands:


# This is a comment. Copy and paste lines without comments in your shell terminal 
# Only the last command requires root privileges
 
# Change into the system /tmp directory. 
cd /tmp

# Clone the repository
git clone https://github.com/sadhen/marketo.git

# Change into the new directory
cd marketo

# Create a directory called software under your home folder. The Marketo/Markpado binaries 
# will be install there
mkdir $HOME/software

# Create a build directory and change into it
mkdir build && cd build

# Compile the code
cmake -DCMAKE_INSTALL_PREFIX=$HOME/software ..

# Perform all necessary recompilations
make

# Finally, install it (as root)
make install

#

If you navigate to the $HOME/software/bin directory, you’ll find twp programs – marknoto and markpado. The former is a simple note-taking application. Markpado is the subject of this tutorial. To launch it, type the following command:

# Launch Markpado
./markpado

# Want to see what Marknoto looks like? Type
./marknoto

#

Figure 2 is a screenshot of the preview window of Markpado.

Markpado preview window
Figure 3: Markpado in-place preview

Markpado features a rich set of settings, some of which are shown in Figure 3.

Markpado settings
Figure 2: Markpado settings

Share:

Share on facebook
Facebook
Share on twitter
Twitter
Share on pinterest
Pinterest
Share on linkedin
LinkedIn

Hola! Did you notice that LinuxBSDos.com no longer runs network ads?  Yep, no more ads from the usual suspects that track you across the Internet.  But since  I still need to pay to keep the site running, feel free to make a small donation by PayPal.

Subscribe for updates. Trust me, no spam!

Mailchimp Signup Form

Sponsored links

1. Attend Algorithm Conference, a top AI and ML event for 2020.
2. Reasons to use control panel for your server.
3. DHgate Computers Electronics, Cell Phones & more.

14 Responses

  1. Now, I’ve got an error after managed to overcome the previous compile error.

    “`
    CMake Error at markpado/CMakeLists.txt:36 (add_subdirectory):
    The source directory

    /home/badwi/Projects/marketo/markpado/kate-commonmark

    does not contain a CMakeLists.txt file.

    — Configuring incomplete, errors occurred!
    “`
    Please help me

    1. okay, I’ve `touch` the CMakeLists.txt, and now appeared some warning:

      “`
      CMake Warning (dev) at markpado/CMakeLists.txt:13 (add_executable):
      Policy CMP0063 is not set: Honor visibility properties for all target
      types. Run “cmake –help-policy CMP0063” for policy details. Use the
      cmake_policy command to set the policy and suppress this warning.

      Target “markpado” of type “EXECUTABLE” has the following visibility
      properties set for CXX:

      CXX_VISIBILITY_PRESET
      VISIBILITY_INLINES_HIDDEN

      For compatibility CMake is not honoring them for this target.
      This warning is for project developers. Use -Wno-dev to suppress it.

      CMake Warning (dev) at marknoto/CMakeLists.txt:20 (add_executable):
      Policy CMP0063 is not set: Honor visibility properties for all target
      types. Run “cmake –help-policy CMP0063” for policy details. Use the
      cmake_policy command to set the policy and suppress this warning.

      Target “marknoto” of type “EXECUTABLE” has the following visibility
      properties set for CXX:

      CXX_VISIBILITY_PRESET
      VISIBILITY_INLINES_HIDDEN

      For compatibility CMake is not honoring them for this target.
      This warning is for project developers. Use -Wno-dev to suppress it.
      “`
      Sorry, as I’m newbie in Fedora

  2. hiiii
    I’m new to fedora. I’m trying to install the markdown editor.
    but after cloning marketo.git when i run the following command

    ##cmake -DCMAKE_INSTALL_PREFIX=$HOME/software ..

    system raises the error
    CMake Error at CMakeLists.txt:7 (find_package):
    Could not find a package configuration file provided by “ECM” (requested
    version 1.7.0) with any of the following names:

    ECMConfig.cmake
    ecm-config.cmake

    Add the installation prefix of “ECM” to CMAKE_PREFIX_PATH or set “ECM_DIR”
    to a directory containing one of the above files. If “ECM” provides a
    separate development package or SDK, be sure it has been installed.

    — Configuring incomplete, errors occurred!
    See also “/tmp/marketo/build/CMakeFiles/CMakeOutput.log”.

    How can i resolve this issue.
    hopeful for your reply

    thankss!!!

    1. To second @Darcy Shen, you need to have ECM installed already, which I thought I showed how to install in this article, but apparently left it out.

      I’ll update it soonest.

Leave a Reply to badwi Cancel reply

Your email address will not be published. Required fields are marked *

Get the latest

On social media
Via my newsletter
Mailchimp Signup Form

Partner links

1. Attend Algorithm Conference, a top AI and ML event for 2021.
2. Reasons to use control panel for your server.
3. DHgate Computers Electronics, Cell Phones & more.
Hacking, pentesting distributions

Linux Distributions for Hacking

Experts use these Linux distributions for hacking, digital forensics, and pentesting.

Categories
Archives

The authors of these books are confirmed to speak during

Algorithm Conference

T-minus AI

Author was the first chairperson of AI for the U.S. Air Force.

The case for killer robots

Author is the Director of the Center for Natural and Artificial Intelligence.

Why greatness cannot be planned

Author works on AI safety as a Senior Research Scientist at Uber AI Labs.

Anastasia Marchenkova

An invitation from Anastasia Marchenkova

Hya, after stints as a quantum researcher at Georgia Tech Quantum Optics & Quantum Telecom Lab, and the University of Maryland Joint Quantum Institute, I’m now working on superconducting qubit quantum processors at Bleximo. I’ll be speaking during Algorithm Conference in Austin, Texas, July 16 – 18, 2020. Meet me there and let’s chat about progress and hype in quantum computing.