# goldmark-python **Repository Path**: OhYee/goldmark-python ## Basic Information - **Project Name**: goldmark-python - **Description**: No description available - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-30 - **Last Updated**: 2021-08-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # goldmark-python [![Sync to Gitee](https://github.com/OhYee/goldmark-python/workflows/Sync%20to%20Gitee/badge.svg)](https://gitee.com/OhYee/goldmark-python) [![w orkflow state](https://github.com/OhYee/goldmark-python/workflows/test/badge.svg)](https://github.com/OhYee/goldmark-python/actions) [![codecov](https://codecov.io/gh/OhYee/goldmark-python/branch/master/graph/badge.svg)](https://codecov.io/gh/OhYee/goldmark-python) [![version](https://img.shields.io/github/v/tag/OhYee/goldmark-python)](https://github.com/OhYee/goldmark-python/tags) goldmark-python is an extension for [goldmark](https://github.com/yuin/goldmark). You can use python to build svg image or output data in your markdown like [mume](https://github.com/shd101wyy/mume) It will auto replace `import matplotlib.pyplot as plt` to output svg in markdown. ## screenshot There are two demo(using `'` instead of ′ in the code block) 1. default config [Demo1](demo/demo1/main.go) [Output1](demo/demo1/output.html) ```markdown '''python print("Hello World") ''' ``` ![](img/helloworld.png) 2. using `python-output` and [goldmark-highlighting extension](https://github.com/yuin/goldmark-highlighting) [Demo2](demo/demo1/main.go) [Output2](demo/demo1/output.html) ```markdown '''python import matplotlib.pyplot as plt import matplotlib import sys matplotlib.use("svg") y = [1, 2, 3, 4, 5] x = [5, 4, 3, 2, 1] plt.plot(x, y) plt.savefig(sys.stdout) ''' '''python-output import matplotlib.pyplot as plt import matplotlib import sys matplotlib.use("svg") y = [1, 2, 3, 4, 5] x = [5, 4, 3, 2, 1] plt.plot(x, y) plt.savefig(sys.stdout) ''' ``` ![](img/svg.png) ## Installation ```bash go get -u github.com/OhYee/goldmark-python ``` ## License [MIT](LICENSE)