> For the complete documentation index, see [llms.txt](https://wwydev.gitbook.io/mkdc-zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wwydev.gitbook.io/mkdc-zh/readme.md).

# 概述

[![markdown-compiler](https://s2.loli.net/2024/05/30/5uNIUdqkG1CpmQa.png)](https://github.com/WwwwwyDev/markdown-compiler)

## markdown-compiler

像编程一样编写markdown文本

![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.github.com%2Frepos%2FWwwwwyDev%2Fmarkdown-compiler%2Freleases%2Flatest\&query=%24.name\&label=version\&link=https%3A%2F%2Fgithub.com%2FWwwwwyDev%2Fmarkdown-compiler%2Freleases%2Flatest) [![GitHub stars](https://img.shields.io/github/stars/WwwwwyDev/markdown-compiler)](https://github.com/WwwwwyDev/markdown-compiler/stargazers)

{% embed url="<https://github.com/WwwwwyDev/markdown-compiler>" %}

{% embed url="<https://gitee.com/wu_wen_yi/markdown-compiler>" %}

### 介绍

当markdown文本过长时，可能会导致维护变得困难。使用mkdc，您可以像编程一样撰写markdown，它支持变量、条件判断、循环和模块化。

### 安装

* 从下面的链接下载相应系统的mkdc\
  [github](https://github.com/WwwwwyDev/markdown-compiler/releases/latest) | [gitee](https://gitee.com/wu_wen_yi/markdown-compiler/releases/latest)
* 解压它，并将赋予它可执行权限，将它添加到环境变量中

### 快速开始

```shell
mkdc init hello-world
mkdc build hello-word
```
