Skip to main content

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)

Source distribution for QMarkdownView 0.2
File Size Uploaded
QMarkdownView-0.2.tar.gz 2.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for QMarkdownView 0.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page