# 概述

[![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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wwydev.gitbook.io/mkdc-zh/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
