The MarkdownUp launcher
Project description
markdown-up
MarkdownUp is a Markdown viewer.
Install MarkdownUp
Use Python's pip to install MarkdownUp as follows:
pip install markdown-up
View Markdown Files
To start MarkdownUp, open a terminal and run the markdown-up application:
markdown-up
The markdown-up application opens the web browser to the MarkdownUp file browser, which allows you
to view Markdown or HTML files and navigate directories. To view a file, click on its link.
You can view a specific file as follows:
markdown-up README.md
Note: MarkdownUp runs entirely offline. It does not use an external service to render Markdown files.
Running MarkdownUp
When you run the markdown-up application, in addition to opening the web browser, it starts a
chisel
backend API application using
waitress.
Automatically Creates HTML for Markdown Files
When you run MarkdownUp and click on a Markdown file link, the link navigates to an HTML file that
renders the Markdown file. Every Markdown file hosted by MarkdownUp has a corresponding .html file
of the same name. For example, if you run Markdown up in a directory that has the following Markdown
files: "README.md" and "CHANGELOG.md". The MarkdownUp service automatically generates "README.html"
and "CHANGELOG.html" files.
The generated .html files are HTML stubs for the
MarkdownUp Front-End Application.
All Markdown parsing and rendering are done on the client to minimize server costs.
Command-Line Arguments
The markdown-up application has the following command-line arguments:
usage: markdown-up [-h] [-p N] [-t N] [-n] [-r] [-q] [path]
positional arguments:
path the file or directory to view (default is ".")
options:
-h, --help show this help message and exit
-p N the application port (default is 8080)
-t N the number of web server threads (default is 8)
-n don't open a web browser
-r release mode (cache statics, remove documentation and index)
-q don't display access logging
MarkdownUp Applications
MarkdownUp Applications
are front-end applications that run within the
MarkdownUp Front-End Application
using the
BareScript
programming language. Markdown files viewed within MarkdownUp may contain markdown-script fenced
code blocks containing
BareScript
that executes when the Markdown renders.
MarkdownUp has libraries for dynamically generating and rendering Markdown text, drawing SVG images, performing data analytics, parsing application arguments, and much more. See the MarkdownUp Library and MarkdownUp Include Library for more information.
Here's an example of a simple MarkdownUp application:
# The First Ten Numbers
Here are the first ten numbers:
```markdown-script
i = 1
while i <= 10:
markdownPrint('', stringNew(i))
i = i + 1
endwhile
```
Development
This package is developed using python-build. It was started using python-template as follows:
template-specialize python-template/template/ markdown-up-py/ -k package markdown-up -k name 'Craig A. Hobbs' -k email 'craigahobbs@gmail.com' -k github 'craigahobbs' -k noapi 1
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file markdown_up-2.2.0.tar.gz.
File metadata
- Download URL: markdown_up-2.2.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcfca206cc3c8a15dff3085cc0d40f303109ca58433b66fc228efba68287afd9
|
|
| MD5 |
6d1f720b3ef2e76f965e3d69fd659ec0
|
|
| BLAKE2b-256 |
ccfcd9e45d0b6c3ac74db4b0ba5350fd014e994d170232741d7c042e168822e8
|
File details
Details for the file markdown_up-2.2.0-py3-none-any.whl.
File metadata
- Download URL: markdown_up-2.2.0-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a32f7bf7085eb7c04e0a342205111a6434448f3e10d1daba8141a91228527a95
|
|
| MD5 |
7d847dfdb0c65ed49a8c7b3208e6725b
|
|
| BLAKE2b-256 |
7909cf55829af8263b460b5d02f410e29963cd05a2ca3632677583b8225aba50
|