This is a paragraph with bold text, italic text, and inline code. Here's a link to example and some more text.
Here's some inline code: print("Hello, World!") in the middle of a sentence.
def fibonacci(n):
"""Generate Fibonacci sequence up to n terms."""
if n <= 0:
return []
elif n == 1:
return [0]
elif n == 2:
return [0, 1]
sequence = [0, 1]
for i in range(2, n):
sequence.append(sequence[i-1] + sequence[i-2])
return sequence
# Example usage
print(fibonacci(10))function greetUser(name) {
return `Hello, ${name}! Welcome to our application.`;
}
const users = ["Alice", "Bob", "Charlie"];
users.forEach((user) => console.log(greetUser(user)));- First item
- Second item with bold text
- Third item with italic text
- Fourth item with
inline code
- First numbered item
- Second numbered item
- Third numbered item with a link
- Fourth numbered item
This is a blockquote with some important information. It can span multiple lines and contain bold and italic text.
It can even contain
inline codeand links.
This is another blockquote to show multiple quotes.
Here's some text before a horizontal rule.
And here's some text after the horizontal rule.
This paragraph contains bold text, italic text, inline code, and a link to documentation.
The next paragraph shows how text wraps naturally based on the terminal width, which is especially useful for reading long documents in the terminal like man pages.
# Install dependencies
uv add click rich mistune
# Run the program
python md2term.py README.md
# Use with pipes
curl -s https://raw.githubusercontent.com/user/repo/main/README.md | python md2term.pyNote
This is a note callout.
Tip
This is a tip callout.
Warning
This is a warning callout.
Important
This is an important callout.
Caution
This is a caution callout.
[!NOTE] Custom Note Title
This is a note with a custom title.
[!TIP] Pro Tip
This is a tip with a custom title.
[!WARNING] Complex Warning
This callout contains bold text, italic text, and
inline code.It can also contain:
- Bullet points
- Multiple paragraphs
- Even links
# And code blocks! def example(): return "Hello from a callout!"
That's all folks!