Skip to content

Latest commit

 

History

History
178 lines (125 loc) · 2.94 KB

tothom.md

File metadata and controls

178 lines (125 loc) · 2.94 KB

Tothom

Code blocks

Executable

echo 'Hello World!'

Non-executable

obj:
  arr:
    - item 1
    - item 2
  str: value
  num: 1
  bool: true

Interpolation

echo "Current directory is $PWD"

Multiline

cat <<EOF
This is a
multiline
code block
EOF

Carrying values

export TIME="$(date)"
echo "Time was: $TIME\nTime now is: $(date)"
unset TIME

Loading

sleep 3
echo 'Done.'

ANSI escape sequences

echo "\
Test case #1: \033[32mOK\033[0m\n\
Test case #2: \033[32mOK\033[0m\n\
Test case #3: \033[31mFAIL\033[0m\n\
__________________\n\
Test result: \033[1;37;41mFAIL\033[0m"

Compatibility

Formatting

Bold, italic, both, strikethrough, subscript, superscript, kbd.

Attributes

This is a keyword{.pl-k}.

This has a title. {title="this is the title"}

Lists

Ordered lists

  1. Item 1
  2. Item 2
  3. Item 3
  1. Item 1
  2. Item 2
  3. Item 3

Bullet lists

  • Item 1
  • Item 2
  • Item 3
  • Item 1
  • Item 2
  • Item 3

Nested lists

  1. First list item
    • First nested list item
      • Second nested list item

Task lists

  • Item 1
  • Item 2
  • Item 3

Links

Tables

Left Center Right
Cell 1 Cell 2 Cell 3

Images

Tothom

Details

Show details

Details are visible.

Blockquote

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Horizontal line