QMarkdownView
Description
QMarkdownView is a package based on PySide6 designed to help you preview Markdown documents.
Markdown by default supports code highlighting and LaTex mathematical formulas.
How to use
Firstly, you need to introduce the QMarkdownView library.
from QMarkdownView import MarkdownView, LinkMiddlewarePolicy
You can use the component class `MarkdownView`` we provide.
widget = MarkdownView()
MarkdownView inherits from QWebEngineView.
You can change the Markdown rendering plugin through the setExtension member function. The markup rendering engine for this function library is python-markdown.
widget.setExtensions(["markdown.extensions.tables", "markdown.extensions.extra"])
You can modify Markdown text through the setValue member function.
widget.setValue("# Hello world!")
Warning: You need to call this function after the component is loaded.
Metadata
Release files for QMarkdownView 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| QMarkdownView-0.2.tar.gz | 2.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| QMarkdownView-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.0 MB
Release files / QMarkdownView-0.2.tar.gz
| Download URL | QMarkdownView-0.2.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57f647472929c5bfd01de11e70e00a16a573a8b85353b48c31fc9b0a569f390b
|
|
BLAKE2b-256 checksum How to use checksums |
f183e98cf135e150e6b63666d071d1997a50bb079e4505ff04dbb383656c7f08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / QMarkdownView-0.2-py3-none-any.whl
| Download URL | QMarkdownView-0.2-py3-none-any.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
645bb0010a8d21488edbd3767e6d63d06f437e0b1317252763ce2529ec8953e8
|
|
BLAKE2b-256 checksum How to use checksums |
a0103dcf599146a68064d33156406cb866cdfe606ebe117356412e6cdbf85625
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|