Skip to main content

vimwiki-markdown

PyPI version PyPI downloads

vimwiki markdown file to html with syntax highlighting.

Install

pip install vimwiki-markdown

Usage

Add the following to your ~/.vimrc:

let g:vimwiki_list = [{
	\ 'path': '~/vimwiki',
	\ 'template_path': '~/vimwiki/templates/',
	\ 'template_default': 'default',
	\ 'syntax': 'markdown',
	\ 'ext': '.md',
	\ 'path_html': '~/vimwiki/site_html/',
	\ 'custom_wiki2html': 'vimwiki_markdown',
	\ 'template_ext': '.tpl'}]

Markdown extensions

The following markdown extensions are activated by default:

But you can add more extensions using VIMWIKI_MARKDOWN_EXTENSIONS environment variable:

  1. Json dictionary syntax of extension with configuration {"toc": {"baselevel": 2 }, "nl2br": {}}. Note: {} configuration implies no configuration.
  2. [DEPRECATED] Json list syntax of extension. ["toc", "nl2br"].
  3. [DEPRECATED] comma separated list of extensions toc,nl2br.

Warning Deprecated formats will be remove in next major release

Syntax highlighting

Syntax highlighting is provided by Pygments, which will try to guess language by default.

You can use regular markdown indented code blocks:

	:::python
	for value range(42):
		print(value)

Or Fenced Code Blocks

```python
for value range(42):
	print(value)
```

You can also highlight line using hl_lines argument:

```python hl_lines="1 3"
for value range(42):
	print(value)
```

Pygments can generate CSS rules for you. Just run the following command from the command line:

pygmentize -S default -f html -a .codehilite > styles.css

If you would like to use a different theme, swap out default for the desired theme. For a list of themes installed on your system, run the following command:

pygmentize -L style

If you are lazy you can just use the one in this repository inside css directory which provide the monokai theme.

Environment variables

The following environment variables are available, but not mandatory:

  • VIMWIKI_TEMPLATE_PATH: path to vimwiki HTML template
  • VIMWIKI_TEMPLATE_DEFAULT: default HTML template name
  • VIMWIKI_TEMPLATE_EXT: default HTML template extension
  • VIMWIKI_ROOT_PATH: vimwiki root path

If not set vimwiki_markdown will use the default template defined in the source code.

Metadata

Release files for vimwiki-markdown 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vimwiki-markdown 0.4.1
File Size Uploaded Provenance Actions
vimwiki-markdown-0.4.1.tar.gz 5.5 kB Without provenance Details for vimwiki-markdown-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vimwiki-markdown 0.4.1
File Interpreter ABI Platform Actions
vimwiki_markdown-0.4.1-py3-none-any.whl Python 3 none any Details for vimwiki_markdown-0.4.1-py3-none-any.whl

Total release size: 11.2 kB

Release files / vimwiki-markdown-0.4.1.tar.gz

Download URL vimwiki-markdown-0.4.1.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
84997439313a907b9c5463b180e6411b49e86117f199adf2652ad4584b2c2cde
BLAKE2b-256 checksum
How to use checksums
c7f55a112edf0b3efca5d95bf791d0aefc1c0c3d825c20948bd0d0c30476716b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / vimwiki_markdown-0.4.1-py3-none-any.whl

Download URL vimwiki_markdown-0.4.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d951cb28a4e329ef03cd43a5604aada6215cc1438465d3e3bc6fba47e48d172f
BLAKE2b-256 checksum
How to use checksums
160b46ce2fd31edf0ad8de46a1db84fe643b89829b97055f93ffbb48601f3576
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for vimwiki-markdown 0.4.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.

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