= AsciiDoc Test Document
Kismet Lee 
2.9, October 31, 2021: Fall incarnation
:description: Test description
:author: Kismet Lee
:date: 2021-10-31
:version: 2.9
:status: Draft
:keywords: AsciiDoc, Test, Document
:category: Test
:language: English

== Bullet list

This is a test unordered list with mixed bullets:

* First item with a number 2. in it
* Second item
* Third item
** Indented item
** Indented item
* Fourth item

Another unordered list:

* 1st item
* 2nd item
* third item containing _italic_ text
** indented item
** second indented item
* fourth item

This is a test ordered list with indented items:

. First item
. Second item
. Third item
.. Indented item
.. Indented item
. Fourth item

Ordered list where everything has no number:

. First item
. Second item
. Third item
. Fourth item

This is a mixed list with indented items:

. First item
. Second item
. Third item
* Indented item
* Indented item
. Fourth item

This is another mixed list with indented items:

* First item
* Second item
* Third item
. Indented item
. Indented item
* Fourth item

== Headers

=== Third-level header

==== Fourth-level header

===== Fifth-level header

====== Sixth-level header

== Media and Links

=== Nostr address

This should be ignored and rendered as plaintext: naddr1qvzqqqr4gupzplfq3m5v3u5r0q9f255fdeyz8nyac6lagssx8zy4wugxjs8ajf7pqyghwumn8ghj7mn0wd68ytnvv9hxgtcqy4sj6ar9wd6xv6tvv5kkvmmj94kkzuntv3hhwm3dvfuj6enyxgcrset98p3nsve2v5l

This is also plaintext:

npub1gv069u6q7zkl393ad47xutpqmyfj0rrfrlnqnlfc2ld38k8nnl4st9wa6q

These should be turned into links:

nostr:naddr1qvzqqqr4gupzplfq3m5v3u5r0q9f255fdeyz8nyac6lagssx8zy4wugxjs8ajf7pqyghwumn8ghj7mn0wd68ytnvv9hxgtcqy4sj6ar9wd6xv6tvv5kkvmmj94kkzuntv3hhwm3dvfuj6enyxgcrset98p3nsve2v5l

nostr:npub1l5sga6xg72phsz5422ykujprejwud075ggrr3z2hwyrfgr7eylqstegx9z

nostr:nevent1qvzqqqqqqypzp382htsmu08k277ps40wqhnfm60st89h5pvjyutghq9cjasuh38qqythwumn8ghj7un9d3shjtnswf5k6ctv9ehx2ap0qqsysletg3lqnl4uy59xsj4rp9rgw67wg23l827f4uvn5ckn20fuxcq45d8pj

nostr:nprofile1qqsxhedgkuneycxpcdjlg6tgtxdy8gurdz64nq2h0flc288a0jag98qguy3nh

nostr:note1txyefcha2xt3pgungx4k6j077dsteyef6hzpyuuku00s4h0eymzq4k33yg

=== Hashtag

#testhashtag at the start of the line and #inlinehashtag in the middle

=== Wikilinks

[[NKBIP-01|Specification]] and [[mirepoix]]

=== URL

https://www.welt.de/politik/ausland/article69a7ca00ad41f3cd65a1bc63/iran-drohte-jedes-schiff-zu-verbrennen-trump-will-oel-tanker-durch-strasse-von-hormus-eskortieren.html

link:https://www.welt.de/politik/ausland/article69a7ca00ad41f3cd65a1bc63/iran-drohte-jedes-schiff-zu-verbrennen-trump-will-oel-tanker-durch-strasse-von-hormus-eskortieren.html[Welt Online link]

this should render as plaintext: `http://www.example.com`

this should be a hyperlink to the http URL with the same address link:https://theforest.nostr1.com[wss://theforest.nostr1.com]

=== Images

https://blog.ronin.cloud/content/images/size/w2000/2022/02/markdown.png

image::https://blog.ronin.cloud/content/images/size/w2000/2022/02/markdown.png[width=400]

=== Media

==== YouTube

Normal

https://www.youtube.com/watch?v=KGIAS0cslSU

https://youtu.be/KGIAS0cslSU

video::KGIAS0cslSU[youtube]

Shorts

https://www.youtube.com/shorts/s-BQhXdCs8Y

video::s-BQhXdCs8Y[youtube]

==== Spotify

https://open.spotify.com/episode/1GSZFA8vWltPyxYkArdRKx

link:https://open.spotify.com/episode/1GSZFA8vWltPyxYkArdRKx[]

==== Audio

https://media.blubrry.com/takeituneasy/ins.blubrry.com/takeituneasy/lex_ai_rick_beato.mp3

audio::https://media.blubrry.com/takeituneasy/ins.blubrry.com/takeituneasy/lex_ai_rick_beato.mp3[]

==== Video

https://v.nostr.build/MTjaYib4upQuf8zn.mp4

video::https://v.nostr.build/MTjaYib4upQuf8zn.mp4[]

== Tables

=== Orderly

[cols="1,2"]
|===
|Syntax|Description

|Header
|Title

|Paragraph
|Text
|===

=== Unorderly

[cols="1,2"]
|===
|Syntax|Description

|Header
|Title

|Paragraph
|Text
|===

=== With alignment

[cols="<,^,>"]
|===
|Syntax|Description|Test Text

|Header
|Title
|Here's this

|Paragraph
|Text
|And more
|===

== Code blocks

=== json

[source,json]
----
{
    "id": "<event_id>",
    "pubkey": "<event_originator_pubkey>",
    "created_at": 1725087283,
    "kind": 30040,
    "tags": [
        ["d", "aesop's-fables-by-aesop"],
        ["title", "Aesop's Fables"],
        ["author", "Aesop"],
    ],
    "sig": "<event_signature>"
}
----

=== typescript

[source,typescript]
----
/**
 * Get Nostr identifier type
 */
function getNostrType(id: string): 'npub' | 'nprofile' | 'nevent' | 'naddr' | 'note' | null {
  if (id.startsWith('npub')) return 'npub';
  if (id.startsWith('nprofile')) return 'nprofile';
  if (id.startsWith('nevent')) return 'nevent';
  if (id.startsWith('naddr')) return 'naddr';
  if (id.startsWith('note')) return 'note';
  return null;
}
----

=== shell

[source,shell]
----

mkdir new_directory
cp source.txt destination.txt

----

=== LaTeX

[source,latex]
----
$$
M = 
\begin{bmatrix}
\frac{5}{6} & \frac{1}{6} & 0 \\[0.3em]
\frac{5}{6} & 0 & \frac{1}{6} \\[0.3em]
0 & \frac{5}{6} & \frac{1}{6}
\end{bmatrix}
$$
----

[source,latex]
----
$$
f(x)=
\begin{cases}
1/d_{ij} & \quad \text{when $d_{ij} \leq 160$}\\ 
0 & \quad \text{otherwise}
\end{cases}
$$
----

=== ABC Notation

[abc]
----
X:1
T:Ohne Titel
C:Aufgezeichnet 1784
A:Seibis nahe Lichtenberg in Oberfranken
S:Handschrift, bezeichnet und datiert: "Heinrich Nicol Philipp zu Seibis den 30 Junius 1784"
M:4/4
L:1/4
K:D
dd d2 | ee e2 | fg ad | cB cA |\
dd d2 | ee e2 | fg ad | ed/c/ d2 :|
|:\
fg ad | cB cA | fg ad | cB cA |\
dd d2 | ee e2 | fg ad | ed/c/ d2 :|
----

=== PlantUML

[plantuml]
----
@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
@enduml
----

=== BPMN

[plantuml]
----
@startbpmn
start
:Task 1;
:Task 2;
stop
@endbpmn
----

== LaTeX

=== LaTeX in inline-code

`$[ x^n + y^n = z^n \]$` and `$[\sqrt{x^2+1}\]$` and `$\color{blue}{X \sim Normal \; (\mu,\sigma^2)}$`

== LaTeX outside of code

This is a latex code block $$\mathbb{N} = \{ a \in \mathbb{Z} : a > 0 \}$$ and another that is an inline latex $\color{green}{X \sim Normal \; (\mu,\sigma^2)}$ and should be green

== Footnotes

Here's a simple footnote,footnote:[This is the first footnote.] and here's a longer one.footnote:[Here's one with multiple paragraphs and code.]

== Anchor links

<<_bullet_list,Link to bullet list section>>

== Formatting

=== Strikethrough

[line-through]#The world is flat.# We now know that the world is round. This should not be ~struck~ through.

=== Bold

This is *bold* text. So is this *bold* text.

=== Italic

This is _italic_ text. So is this _italic_ text.

=== Task List

* [x] Write the press release
* [ ] Update the website
* [ ] Contact the media

=== Emoji shortcodes

Gone camping! :tent: Be back soon.

That is so funny! :joy:

=== Marking and highlighting text

I need to highlight these [highlight]#very important words#.

=== Subscript and Superscript

H~2~O

X^2^

=== Delimiter

based upon a -

'''

based upon a *

'''

=== Quotes

[quote]
____
This is a single line blockequote sdfjsdlfkjasldkfjsdölfkjsdlfkjsadlöfkjsdlöfkjsadölfkjsdlf kjsldfkjsdalkjslkdfjlöskdfjlösdkjfsldkfjsöldkfjlösdkfjalsd  kfjlsdkfjlödkfjlaksdfjlkjdfslkjalsdkfjlasdkfj alsdkjflskdfj sdfklj
____

[quote]
____
This is a multi line blockequote sdfjsdlfkjasldkfjsdölfkjsdlfkjsadlöfkjsdlöfkjsadölfkjsdlf kjsldfkjsdalkjslkdfjlöskdfjlösdkjfsldkfjsöldkfjlösdkfjalsd  kfjlsdkfjlödkfjlaksdfjlkjdfslkjalsdkfjlasdkfj alsdkjflskdfj sdfklj
This is a multi line blockequote sdfjsdlfkjasldkfjsdölfkjsdlfkjsadlöfkjsdlöfkjsadölfkjsdlf kjsldfkjsdalkjslkdfjlöskdfjlösdkjfsldkfjsöldkfjlösdkfjalsd  kfjlsdkfjlödkfjlaksdfjlkjdfslkjalsdkfjlasdkfj alsdkjflskdfj sdfklj
This is a multi line blockequote sdfjsdlfkjasldkfjsdölfkjsdlfkjsadlöfkjsdlöfkjsadölfkjsdlf kjsldfkjsdalkjslkdfjlöskdfjlösdkjfsldkfjsöldkfjlösdkfjalsd  kfjlsdkfjlödkfjlaksdfjlkjdfslkjalsdkfjlasdkfj alsdkjflskdfj sdfklj
This is a multi line blockequote sdfjsdlfkjasldkfjsdölfkjsdlfkjsadlöfkjsdlöfkjsadölfkjsdlf kjsldfkjsdalkjslkdfjlöskdfjlösdkjfsldkfjsöldkfjlösdkfjalsd  kfjlsdkfjlödkfjlaksdfjlkjdfslkjalsdkfjlasdkfj alsdkjflskdfj sdfklj
____
