Skip to main content

import stat plugin for mkdocs like Markdown Preview Enhanced import

Project description

import stat for mkdocs

参考 https://shd101wyy.github.io/markdown-preview-enhanced/#/zh-cn/file-imports

使用

install

pip install mkdocs-import-stat-plugin

use

plugins:
  - import-stat

支持的import 语法有:

  • as

@import "hello.xxx" {as="go"}

  • line_beginline_end

@import "hello.xxx" {line_begin=1, line_end=3}

拓展语法

  • tab 用于对整个代码块缩进,这样更好地与 material 的 tabs 兼容
@import "hello.xxx" {tab}
  • 也可直接缩进使用,但markdown-preview-enhanced 插件在vscode中就会有渲染问题
    @import "hello.xxx" 

清空flag

如直接用

```js {cmd a=x c=x e}
console.log('mkdocs')
```

后 mkdocs 渲染会出错,该插件会将其 {cmd a=x c=x e} 删除,这样就与markdown-preview-enhanced 插件不冲突了

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_import_stat_plugin-1.0.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file mkdocs_import_stat_plugin-1.0.2.tar.gz.

File metadata

  • Download URL: mkdocs_import_stat_plugin-1.0.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.15 Linux/5.15.146.1-microsoft-standard-WSL2

File hashes

Hashes for mkdocs_import_stat_plugin-1.0.2.tar.gz
Algorithm Hash digest
SHA256 1f469fd608e5c1c42478971e9051de0ae2565fcabd8ea32cf46e609f0d8d4340
MD5 321777b413328cb3e8820ab0eb5e145f
BLAKE2b-256 367168811d8afff76957401c9ba5a21e9ce78e485e2d2dfff35654f9c3e44b5e

See more details on using hashes here.

File details

Details for the file mkdocs_import_stat_plugin-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_import_stat_plugin-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e26773ae1e751aa54c783b67c25e22aeeaa7a61702e5e72d8ef2fc6cc1435f8d
MD5 4df5cf5aedb4925c8e9f9950908a77f4
BLAKE2b-256 699ed28f1a64ca5472cef1bc080e9161fea6a8bf08b2052d71409ed0b3dbfb91

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page