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.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: mkdocs_import_stat_plugin-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 60b4d74abf10887d8cb543ef494af268c48b72679c71a9586f798516d6c9d3e8
MD5 f62b4f555895d6383d28a31702e69fce
BLAKE2b-256 928478a993650eaa253cf7fcf938b0b4b782c56653321e282b04c096c9b64f1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mkdocs_import_stat_plugin-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a3fd5e20b6c490be228693b747ab18ec9044de5d37295f35268d5ebf2abfde0
MD5 8e0d87a1412f9a70a94ecc797cee3c76
BLAKE2b-256 f26725076851d09bd12cf606aed94919b0aa2e3cd681173cef6c5134dcbe7f92

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