• This repository has been archived on 07/Mar/2023
  • Stars
    star
    507
  • Rank 87,068 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 2 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Note

This project has been archived, and is now an official part of Textual. See MarkdownViwer and Markdown

Textual Markdown Browser

This project is an experimental "Markdown browser" for the terminal, built with Textual.

Markdown in the terminal is not unusual. Rich has a decent Markdown renderer, but its output is essentially static. Textual Markdown creates a more dynamic Markdown document you can interact with: there are working links, code fences with scrollbars, and tables.

Links must be relative and on the filesystem for now. These could be made to load from the network for a more browser like experience. It is also relatively easy to intercept links and handle them programatically. Opening up custom hypertext like applications.

And finally, there is a TOC (Table Of Contents) extracted from the Markdown, which can be used to navigate the document.

Video

A short video of me playing with the demo Markdown.

Screen.Recording.2022-12-17.at.08.49.48.mov

Screenshots

Screenshot 2022-12-17 at 08 41 58

Screenshot 2022-12-17 at 08 42 33

Screenshot 2022-12-17 at 08 42 38

Try it out

You can install textual-markdown from PyPI in the usual way:

pip install textual-markdown

Here's how you open a Markdown file:

python -m textual_markdown README.md

Disclaimer

At time of writing, there is less than a week's work in this. Which means you may (likely) find bugs.

The future

Some (or all) of this repo will be rolled in to Textual. It may also become a project in its own right. If there is enough interest.