Added mdtohtml
This commit is contained in:
parent
91ed203f60
commit
abaaf147ab
4 changed files with 51 additions and 0 deletions
31
pkgs/mdtohtml/build.sh
Normal file
31
pkgs/mdtohtml/build.sh
Normal file
|
@ -0,0 +1,31 @@
|
|||
pkgname=mdtohtml
|
||||
pkgver=master
|
||||
|
||||
fetch() {
|
||||
curl -L "https://github.com/gomarkdown/mdtohtml/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz
|
||||
tar -xf $pkgname-$pkgver.tar.xz
|
||||
cp ../go.mod .
|
||||
cp ../go.sum .
|
||||
cp ../exts.patch .
|
||||
cd $pkgname-$pkgver
|
||||
patch -p1 < ../exts.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
mkdir build
|
||||
cp ../go.mod .
|
||||
cp ../go.sum .
|
||||
go build -o build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
install -Dm755 build/$pkgname $pkgdir/usr/bin/$pkgname
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
# cat COPYING
|
||||
}
|
12
pkgs/mdtohtml/exts.patch
Normal file
12
pkgs/mdtohtml/exts.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- a/main.go
|
||||
+++ b/main.go
|
||||
@@ -100,7 +100,8 @@
|
||||
parser.FencedCode |
|
||||
parser.Autolink |
|
||||
parser.Strikethrough |
|
||||
- parser.SpaceHeadings
|
||||
+ parser.SpaceHeadings |
|
||||
+ parser.Footnotes
|
||||
|
||||
var renderer markdown.Renderer
|
||||
if latex {
|
5
pkgs/mdtohtml/go.mod
Normal file
5
pkgs/mdtohtml/go.mod
Normal file
|
@ -0,0 +1,5 @@
|
|||
module github.com/gomarkdown/mdtohtml
|
||||
|
||||
go 1.16
|
||||
|
||||
require github.com/gomarkdown/markdown v0.0.0-20210208175418-bda154fe17d8 // indirect
|
3
pkgs/mdtohtml/go.sum
Normal file
3
pkgs/mdtohtml/go.sum
Normal file
|
@ -0,0 +1,3 @@
|
|||
github.com/gomarkdown/markdown v0.0.0-20210208175418-bda154fe17d8 h1:nWU6p08f1VgIalT6iZyqXi4o5cZsz4X6qa87nusfcsc=
|
||||
github.com/gomarkdown/markdown v0.0.0-20210208175418-bda154fe17d8/go.mod h1:aii0r/K0ZnHv7G0KF7xy1v0A7s2Ljrb5byB7MO5p6TU=
|
||||
golang.org/dl v0.0.0-20190829154251-82a15e2f2ead/go.mod h1:IUMfjQLJQd4UTqG1Z90tenwKoCX93Gn3MAQJMOSBsDQ=
|
Loading…
Reference in a new issue