💾 Archived View for perso.pw › blog › articles › markup-language.gmi captured on 2023-06-16 at 16:55:06. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-05-24)

➡️ Next capture (2024-03-21)

-=-=-=-=-=-=-

Markup languages comparison

on 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}