Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This script is a Markdown reader that processes and displays the content of a Markdown file with syntax highlighting and color formatting in the terminal. It is designed to handle various Markdown elements, including headers, lists, blockquotes, inline code, code blocks, tables, hyperlinks, and horizontal rules.

License

NotificationsYou must be signed in to change notification settings

felipefacundes/shell_markdown_reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Shell Markdown Reader is a powerful and enhanced Markdown reader designed for terminal users. This script processes and displays Markdown content with clean formatting, color highlights, and optional syntax highlighting for better readability. It is ideal for developers and content creators who prefer working in the terminal while maintaining structured and readable documentation.

Features

  • Multi-level headers with distinct colors for better visibility.
  • Syntax highlighting for inline code and code blocks.
  • Formatted lists, including bullet points and numbered lists.
  • Table rendering with color differentiation for headers.
  • Hyperlink processing, displaying links in cyan for quick identification.
  • Horizontal rule formatting for improved readability.
  • Automatic removal of unwanted HTML tags such as<br>,<code>, and<pre>.
  • Efficient processing of various Markdown syntaxes.

Installation

To install Shell Markdown Reader, clone the repository using:

git clone https://github.com/felipefacundes/shell_markdown_readercd shell_markdown_readerchmod +x shell_markdown_reader.sh

Usage

Run the script with a Markdown file as an argument:

./shell_markdown_reader.sh README.md

Options:

  • -h,--help: Show the help message.
  • -nl,--no-less: Disable pagination mode.
  • -nh,--no-hl: Disable syntax highlighting for code blocks.

Example usage:

./shell_markdown_reader.sh --no-hl document.md

Dependencies

Ensure that the following dependencies are installed:

  • source-highlight
  • less

If they are missing, install them using:

sudo apt install source-highlight less# For Debian-based systemssudo dnf install source-highlight less# For Fedora-based systems

Part of Shell Utils Framework

Shell Markdown Reader is also part of theShell Utils framework, an extensive collection of scripts and utilities designed to simplify terminal workflows. You can explore more atShell Utils Repository.

License

This project is licensed under theGPLv3 License.

Author

Developed byFelipe Facundes.

About

This script is a Markdown reader that processes and displays the content of a Markdown file with syntax highlighting and color formatting in the terminal. It is designed to handle various Markdown elements, including headers, lists, blockquotes, inline code, code blocks, tables, hyperlinks, and horizontal rules.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp