Markapp
Literate Markdown for Apps™
This project helps generates index.html, style.css, and script.js from code blocks in Markdown files.
Generative AI is all the rage, but it can be cumbersome to try out code that it generates. This script allows us to manages notes and code snippets in a single file and break them up into multiple files for easy web serving.
Example Usage
pip install markapp
# Get list of options
markapp --help
# Usage: markapp [OPTIONS] SRC
#
# Compile markdown files into HTML
#
# Options:
# --output-dir TEXT Output directory
# --watch Watch for changes and recompile
# --debounce INTEGER Debounce time in milliseconds
# --serve Serve the output directory
# --host TEXT Serve host
# --port INTEGER Serve port
# --help Show this message and exit.
# Compile markdown files into HTML
markapp tests/sample.md --output-dir .
# Will generate `sample` directory with the following structure:
tree sample
# sample
# ├── index.html
# ├── script.js
# └── style.css
Sample Markdown
# Really Cool Prompt
Make me a website with html, css, and javascript in their own files.
```html
inner html
```
```css
inner css
```
```javascript
inner javascript
```
Markdown Options
Here is a slightly more complex example.
# Really Cool Prompt
Make me a website with html, css, and javascript in their own files.
```html > index.html
inner html
```
```css > css/style.css
inner css
```
```javascript >> script/app.js
inner javascript
```
How to tell your generative AI to create these code blocks?!
Here is an example prompt to get you started:
Your MUST respond with Literate Markdown. For example:
- Each fenced code block must begin with three backticks followed by a language, space, greater than, space, and a file path.
- You may append to a previous file by using two greater thans and then the file name.
- Example create block:
console.log('hello')- Example append block:
</code></pre> </li> </ul> </blockquote> <pre><code>
Metadata
Release files for markapp 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| markapp-0.3.1.tar.gz | 5.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| markapp-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.8 kB
Release files / markapp-0.3.1.tar.gz
| Download URL | markapp-0.3.1.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf751deae314e42e0aebae24792753a6d4b9a25942dfd643312fef5a03fba56d
|
|
BLAKE2b-256 checksum How to use checksums |
338f763a4241d9131c2c9835434104299f3e755cea27bff51ee271e1a6daa82e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Release files / markapp-0.3.1-py3-none-any.whl
| Download URL | markapp-0.3.1-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
010dbeabe78de0530bcb0d6fe795a602ef42835754d3d6e8f736ef63ecd6096c
|
|
BLAKE2b-256 checksum How to use checksums |
4c6fd950a4f7f8c838014ab8a7ba59e31d3a693158e5a040cd00be0d9b252f87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Security for markapp 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.