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

Contact me: solene at dataswamp dot org or @solene@bsd.network (mastodon).

You can sponsor my work financially if you want 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}