repositorypackage
0.0.5
Repository: https://github.com/ohyee/goldmark-python.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
goldmark-python
goldmark-python is an extension for goldmark.
You can use python to build svg image or output data in your markdown like 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)
- default config
'''python
print("Hello World")
'''
- using
python-output
and goldmark-highlighting extension
'''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)
'''
Installation
go get -u github.com/OhYee/goldmark-python