mdformat-gfm-1.0.0


توضیحات

Mdformat plugin for GitHub Flavored Markdown compatibility
ویژگی مقدار
سیستم عامل -
نام فایل mdformat-gfm-1.0.0
نام mdformat-gfm
نسخه کتابخانه 1.0.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Taneli Hukkinen <hukkin@users.noreply.github.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/mdformat-gfm/
مجوز -
[![Build Status](https://github.com/hukkin/mdformat-gfm/actions/workflows/tests.yaml/badge.svg?branch=master)](https://github.com/hukkin/mdformat-gfm/actions?query=workflow%3ATests+branch%3Amaster+event%3Apush) [![PyPI version](https://img.shields.io/pypi/v/mdformat-gfm)](https://pypi.org/project/mdformat-gfm) # mdformat-gfm > Mdformat plugin for GitHub Flavored Markdown compatibility ## Description [Mdformat](https://github.com/executablebooks/mdformat) is a formatter for [CommonMark](https://spec.commonmark.org/current/) compliant Markdown. Mdformat-gfm is an mdformat plugin that changes the target specification to [GitHub Flavored Markdown (GFM)](https://github.github.com/gfm/), making the tool able to format the following syntax extensions: - [tables](https://github.github.com/gfm/#tables-extension-) - [task list items](https://github.github.com/gfm/#task-list-items-extension-) - [strikethroughs](https://github.github.com/gfm/#strikethrough-extension-) - [autolinks](https://github.github.com/gfm/#autolinks-extension-) - [disallowed raw HTML](https://github.github.com/gfm/#disallowed-raw-html-extension-) (note that no changes are required from a formatter to support this extension) ## Install ```sh pipx install mdformat pipx inject mdformat mdformat-gfm ``` ## Usage ```sh mdformat <filename> ``` ## Configuration Mdformat-gfm distribution includes two plugins identified as `gfm` and `tables`. The `gfm` plugin adds support for all GFM syntax (including tables). Enabling `tables` only adds tables support. Mdformat-gfm adds a `--compact-tables` CLI option and a corresponding `compact_tables` TOML boolean. Turning this on will strip extra spaces from GFM tables that are otherwise used to align table columns. To use the option on the command line, do ```sh mdformat --compact-tables <filename> ``` Alternatively add the following in a `.mdformat.toml` configuration file ```toml [plugin.tables] compact_tables = true ```


نیازمندی

مقدار نام
- mdformat>=0.7.5
- markdown-it-py
- mdit-py-plugins>=0.2.0
- wcwidth>=0.2.13


زبان مورد نیاز

مقدار نام
>=3.10 Python


نحوه نصب


نصب پکیج whl mdformat-gfm-1.0.0:

    pip install mdformat-gfm-1.0.0.whl


نصب پکیج tar.gz mdformat-gfm-1.0.0:

    pip install mdformat-gfm-1.0.0.tar.gz