About me: My name is Solène Rapenne, pronouns she/her. I like learning and sharing knowledge. Hobbies: '(NixOS BSD OpenBSD Lisp cmdline gaming security QubesOS internet-stuff). I love percent and lambda characters. OpenBSD developer solene@.

Contact me: solene+www at dataswamp dot org or @solene@bsd.network (mastodon). If for some reason you want to support my work, this is my paypal address: donate@perso.pw.

Consider sponsoring me on Patreon to help me writing this blog and contributing to Free Software as my daily job.

Markup languages comparison

Written by Solène, on 13 April 2017.
Tags: #unix

Comments on Fediverse/Mastodon

For the fun, here is a few examples of the same output in differents markup languages. The list isn’t exhaustive of course.

This is org-mode:

* This is a title level 1
    
+ first item
+ second item
+ third item with a [[http://dataswamp.org][link]]
    
** title level 2
    
Blah blah blah blah blah
blah blah blah *bold* here

#+BEGIN_SRC lisp
(let ((hello (init-string)))
   (format t "~A~%" (+ 1 hello))
   (print hello))
#+END_SRC

This is markdown :

# this is title level 1
    
+ first item
+ second item
+ third item with a [Link](http://dataswamp.org)
    
## Title level 2
    
Blah blah blah blah blah
blah blah blah **bold** here
    
    (let ((hello (init-string)))
       (format t "~A~%" (+ 1 hello))
       (print hello))
    
or
    
```
(let ((hello (init-string)))
   (format t "~A~%" (+ 1 hello))
   (print hello))
```

This is HTML :

<h1>This is title level 1</h1>
<ul>
  <li>first item></li>
  <li>second item</li>
  <li>third item with a <a href="http://dataswamp.org">link</a></li>
</ul>
    
<h2>Title level 2</h2>
    
<p>Blah blah blah blah blah
  blah blah blah <strong>bold</strong> here
    
<code><pre>(let ((hello (init-string)))
   (format t "~A~%" (+ 1 hello))
   (print hello))</pre></code>

This is LaTeX :

\begin{document}
    
\section{This is title level 1}
    
\begin{itemize}
\item First item
\item Second item
\item Third item
\end{itemize}
    
\subsection{Title level 2}
    
Blah blah blah blah blah
blah blah blah \textbf{bold} here
    
\begin{verbatim}
(let ((hello (init-string)))
    (format t "~A~%" (+ 1 hello))
    (print hello))
\end{verbatim}
    
\end{document}