md2term(1)

πŸ’– md2term(1) β€” General Use Manual πŸ’–

okay so bestie, welcome to md2term(1), the manual page from the General Use Manual section. she's cute, she's tiny, she makes markdown pretty in your terminal. let's get into it πŸ¦‹


✨ NAME ✨

md2term β€” Markdown parser for highlights and colors in terminal. πŸ’…


🌸 DESCRIPTION 🌸

so here's the tea: md2term was created to be a markdown parser for short texts (less than 30 lines) that could be used in terminal presentations (text slides) and, at the same time, able to be correctly visualized by other parsers on websites (GitHub, GitLab, etc). like, dual-purpose queen behavior πŸ‘‘

the script can also be used satisfactorily to view other texts in markdown, as long as its limitations are observed. (and bestie, we WILL be observing them, they're listed down there ⬇️)


πŸŽ€ SYNOPSIS πŸŽ€

md2term [OPTIONS] -f FILE

πŸ’… OPTIONS πŸ’…

  • -b CHARACTER β€” List marker character. pick your lil bullet babe ✨
  • -c β€” Clears the terminal before displaying text. fresh slate energy 🧼
  • -i SPACES β€” Indentation of lists, codes and citations in spaces.
  • -k VALUE β€” Keep hash marks in titles:
    • 0=Discard all
    • 1=Keep all
    • 2=Only in title 1
  • -m SPACES β€” Ident from left margin in spaces.
  • -p β€” Load a pager (less). πŸ“„
  • -s FILE β€” Alternative color scheme. (yes bestie, you can serve a whole new look πŸ’œ)
  • -t LINES β€” Top offset in lines.
  • -h β€” Show this help. hiii πŸ‘‹

🌈 VALID MARKINGS 🌈

here's the cheat sheet, no cap:

  • **TEXT** or __TEXT__ β†’ BOLD πŸ”₯
  • *TEXT* or *TEXT* β†’ ITALIC ✨
  • ___TEXT___ or ***TEXT*** β†’ BOLD AND ITALIC πŸ‘‘
  • ~~TEXT~~ β†’ STRIKETHROUGH πŸ’€
  • <u>TEXT</u> β†’ UNDERLINE
  • `TEXT` β†’ CODE IN LINE
  • [LABEL](URL) β†’ LABEL

πŸ¦‹ BLOCKS πŸ¦‹

Code blocks must be marked at the beginning of the line! ⚠️ like, START of the line, no sneaky spaces, periodt.

Code block

CODE BLOCK

Unordered lists

- Item 1
- Item 2
- Item 3

Ordered lists

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

Quotes/notes

> The text of the quote or note.

Force line break

Paragraphs, list items, and quotes can \
have lines broken where desired \
using backslashes.

😭 LIMITATIONS 😭

bestie, we gotta be honest, here's where she struggles:

  • Does not interpret nested lists (sub-items) correctly. πŸ™ˆ (no sub-item slay, sorry)
  • Long line breaks can happen in the middle of words, but you can work around the problem by specifying where they should happen in the source text (this is a valid GFM markdown markup). ✍️
  • Using the -c and -p options together can lead to buffer redraw problems in less. πŸ’€
  • Links are just visual representations using the markup label (not the URL). If you prefer the URL, it can be used as a label or written as plain text (most terminals interpret URLs as links). πŸ”—

πŸ‘‘ LICENSE πŸ‘‘

Copyright (C) 2022 Blau Araujo <blau@debxp.org>

GPLv3+ License: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. THERE IS NO WARRANTY, to the fullest extent permitted by law.

Developed by Blau Araujo and Romeu Alfa 🫢


and that's the whole vibe check, bestie! this was md2term(1) from the General Use Manual β€” go forth, parse your markdown, and serve terminal slides like the main character you are. mwah πŸ’–πŸŽ€πŸ¦‹πŸŒΈβ­