Skip to content

Instantly share code, notes, and snippets.

@tomhodgins
Created August 20, 2020 22:09
Show Gist options
  • Save tomhodgins/0927690ef97dd7dd9398f9e8d900dc47 to your computer and use it in GitHub Desktop.
Save tomhodgins/0927690ef97dd7dd9398f9e8d900dc47 to your computer and use it in GitHub Desktop.

here's an example of some text content, and a variety of markups for it:

This is a headline
This is a paragraph

troff

.SH
This is a headline
.LP
.PP
This is a paragraph
.LP

The markup we're adding here looks like .SH to open a 'short heading' or .PP to open a 'paragraph', and .LP to close the open tag.

GML ~1970s

:h1.This is a headline
:p.This is a paragraph

The markup we have here are just macros at the start of a line to tell us which mode to shift into, :h1. begins a headline, :p. begins a paragraph

SGML from ~1980s

<head>This is a headline</head>
<p>This is a headline</p>

HTML from ~1990s

<h1>This is a headline</h1>
<p>This is a paragraph</p>

Markdown from 2000s

# This is a headline

This is a paragraph

Etc, all various different ways of marking up the text content in ways that describe what that text content actually is and means

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment