:tip-caption: :bulb: :note-caption: :information_source: :important-caption: :heavy_exclamation_mark: :caution-caption: :fire: :warning-caption: :warning:
Examples taken from: AsciiDoc Writer’s Guide
bold constrained & unconstrained
italic constrained & unconstrained
bold italic constrained & unconstrained
monospace constrained
& un
constrained
monospace bold constrained
& un
constrained
monospace italic constrained
& un
constrained
monospace bold italic constrained
& un
constrained
-
By default lines are wrapped into a paragraph. To preserve hard linebreaks, either add
[%hardbreaks]
at the beginning of the pragraph or end the line by "space plus"+
. As explained here -
To place emphasis outside of a word boundaries (eg. in_theMIDDLEof_a_word), you need to double up the punctuation.
-
To prevent punctuation from being interpreted as formatting markup, precede it with a backslash (
\
). If the formatting punctuation begins with two characters (e.g., __), you need to precede it with two backslashes (\\
) -
In particular, writing "space{plus}" in monospace is particularly difficult. The meaning of backtick (`) and plus () changed in Asciidoctor 1.5.0. Backticks only make the text monospaced, whereas pluses passthrough text without applying formatting. See the migration page for details. There are several wyas to write "space" in monospace:
-
Use
{nbsp}
instead of space:+
or+
-
Use
` delimiter as passthrough: ` ++
-
bold *constrained* & **un**constrained + italic _constrained_ & __un__constrained + bold italic *_constrained_* & **__un__**constrained + monospace `constrained` & ``un``constrained + monospace bold `*constrained*` & ``**un**``constrained + monospace italic `_constrained_` & ``__un__``constrained + monospace bold italic `*_constrained_*` & ``**__un__**``constrained +
Uhhoo, GitHub doesn’t render the "Marks and Custom Styling" below as show in Formatted Text
This text must have a YELLOW HIGHLIGHT.
Did the werewolves read the small print?
Here is an underline This text must be underlined Do you see it on GitHub?
Emphasize a deleted text by a strike through while still leave the text visible.
OOOHHHnce upon an infinite loop.
-
level 1
-
level 2
-
level 3
-
level 4
-
level 5
-
-
-
-
-
back to level 1
-
Writing your own custom Layout
-
PatternLayout
-
Format modifiers
-
Item1, bottom paragraph must align with this item
-
Item 1.1
-
Item 1.2
The technique to align a paragraph with a parent item is called Attaching to an ancestor list. The paragraphe must be sparated by
blank line
and a the symbol+
which means "list continuation". The number of blank line that precedes the list continuation signals a move up one level of nesting. eg. 2 blank lines means align the paragraph with the grand parent item. The syntax for list above is -
* Item1, bottom paragraph must align with this item ** Item 1.1 ** Item 1.2 + The technique to align a paragraph ...
Excerpt from A Glossary of Functional Programming
- Category Theory
-
Category theory is a branch of mathematics that defines mathematical structure using directed labeled graphs (categories). An alternative to algebraically-defined structure, category theory is a powerful and precise pattern language for mathematics, computer science, and functional programming. Knowledge of category theory is helpful but not necessary for mastery of applied functional programming.
- F-Algebra
-
An F-algebra is a generalization of algebraic structure that comes from category theory, which makes it possible to represent algebraic laws without universal quantification, using only morphisms. In functional programming, F-algebras appear more directly as interpreters for both tagless-final and free monadic programs (natural transformations), and as algebras and coalgebras in recursion schemes.
Use [horizontal]
to right-align the description
Higher-Kinded Types |
Higher-kinded types, more precisely called higher-kinded generics, is a language feature in which type parameters may have a kind higher than |
Monad |
A |
Combine Description list + unordered list
Firefox |
Web Browser |
Ruby |
Programming Language |
TorqueBox |
Application Server |
Name | Group | Description |
---|---|---|
Firefox |
Web Browser |
Mozilla Firefox is an open-source web browser. It’s designed for standards compliance, performance and portability. |
Scala |
Programming Language |
A Functional Progamming on JVM, can use Java libs |
Cassandra |
noSQL database |
KV database inspired fromGoogle BigTable |
The instructions below is inspired from this blog
-
External URL for image is not possible (the image will appears as broken image)
-
The image must be located within the gist repo
-
Sub-directory is not allowed in a gist repo. The image must be stored at the same location than the gist document.
-
Create a gist if you haven’t already.
ℹ️this is a complex ordered list (having quote). Need to use a technique called List Continuation -
Clone your gist:
# the hash is taken from the top right box in the gist page git clone [email protected]:git clone [email protected]:8b5e0133f91dc199f1270d623fab7e2e.git
-
Add your image to your gist’s repository:
# NOTE: gist doesn't accept subdirectory, all files must be at root level $ git add your-image.jpg $ git commit -m "Add image" $ git push origin master
-
Get the URL of the image
-
Using browser, navigate to the gist URL
-
The image which has been committed appears in the bottom, and is rendered as an image
-
right-click on that image, select "Copy image address"
-
use that image URL in the
image
tag. See Asciidoc documentation -
NOTE: this is hybrid list (nest unordered list within ordered list)
-
-
Edit the Asciidoc to use the image:
# simple version: link + alternate text + optional resize image::https://gist.github.com/tringuyen-yw/8b5e0133f91dc199f1270d623fab7e2e/raw/fa0b108217d62d3e3817592cafddd9af443d804f/BridgeInTheForest_356.jpg[Bridge in the forest,267,150] # complex version: clickable image + id + title [#img-bridge] .A bridge in the forest [link=https://gist.github.com/tringuyen-yw/8b5e0133f91dc199f1270d623fab7e2e/raw/fa0b108217d62d3e3817592cafddd9af443d804f/BridgeInTheForest_356.jpg] image::https://gist.github.com/tringuyen-yw/8b5e0133f91dc199f1270d623fab7e2e/raw/fa0b108217d62d3e3817592cafddd9af443d804f/BridgeInTheForest_356.jpg[Bridge in the forest,267,150]
And here is the result (must see a resized image below this text)