merodi
A markdown-based static site generator.
git clone https://git.pi66.xyz/merodi
About | Files | Commits | Refs | License
feat: add inline attribute extension
Author: pi66
Date: 2026-10-08 01:56
commit: d8fb2cea
Stat
| A | go.mod | 1 | +1 | -0 |
| A | go.sum | 2 | +2 | -0 |
| A | src/core/lua/enable.go | 2 | +2 | -0 |
Diff
diff --git a/go.mod b/go.mod
index 81d68cc..1ea9465 100644
--- a/go.mod
+++ b/go.mod
@@ -16,6 +16,7 @@ require (
github.com/json-iterator/go v1.1.12 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
+ github.com/nemunaire/goldmark-inline-attributes v0.0.0-20251123083539-f128b1ee39c6 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/stretchr/testify v1.10.0 // indirect
diff --git a/go.sum b/go.sum
index 8175e7c..edad775 100644
--- a/go.sum
+++ b/go.sum
@@ -27,6 +27,8 @@ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
...
Show all
Show less
diff --git a/go.mod b/go.mod
index 81d68cc..1ea9465 100644
--- a/go.mod
+++ b/go.mod
@@ -16,6 +16,7 @@ require (
github.com/json-iterator/go v1.1.12 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
+ github.com/nemunaire/goldmark-inline-attributes v0.0.0-20251123083539-f128b1ee39c6 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/stretchr/testify v1.10.0 // indirect
diff --git a/go.sum b/go.sum
index 8175e7c..edad775 100644
--- a/go.sum
+++ b/go.sum
@@ -27,6 +27,8 @@ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
...
diff --git a/go.mod b/go.mod
index 81d68cc..1ea9465 100644
--- a/go.mod
+++ b/go.mod
@@ -16,6 +16,7 @@ require (
github.com/json-iterator/go v1.1.12 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
+ github.com/nemunaire/goldmark-inline-attributes v0.0.0-20251123083539-f128b1ee39c6 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/stretchr/testify v1.10.0 // indirect
diff --git a/go.sum b/go.sum
index 8175e7c..edad775 100644
--- a/go.sum
+++ b/go.sum
@@ -27,6 +27,8 @@ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
+github.com/nemunaire/goldmark-inline-attributes v0.0.0-20251123083539-f128b1ee39c6 h1:0nZzCUnaGntkIvj+LLp6M1YS/6K2HDXYYs2uM70c3wg=
+github.com/nemunaire/goldmark-inline-attributes v0.0.0-20251123083539-f128b1ee39c6/go.mod h1:+hOsEgoiJWqQOErC3EHg5PihpoiZVqVYibAvPDojQQw=
github.com/nikolalohinski/gonja/v2 v2.5.2-0.20260925050630-cba6d3edb81d h1:ri11gJT5tmR+4loo+QSinWhJrkQPgqFQeZXjMJLvTBo=
github.com/nikolalohinski/gonja/v2 v2.5.2-0.20260925050630-cba6d3edb81d/go.mod h1:UIzXPVuOsr5h7dZ5DUbqk3/Z7oFA/NLGQGMjqT4L2aU=
github.com/onsi/ginkgo/v2 v2.23.4 h1:ktYTpKJAVZnDT4VjxSbiBenUjmlL/5QkBEocaWXiQus=
diff --git a/src/core/lua/enable.go b/src/core/lua/enable.go
index 68b21e5..7bcd7d6 100644
--- a/src/core/lua/enable.go
+++ b/src/core/lua/enable.go
@@ -7,6 +7,7 @@ import (
"github.com/yuin/goldmark/util"
glua "github.com/yuin/gopher-lua"
ga "github.com/mdigger/goldmark-attributes"
+ gia "github.com/nemunaire/goldmark-inline-attributes"
)
var extensionsMap = map[string]goldmark.Extender{
@@ -20,6 +21,7 @@ var extensionsMap = map[string]goldmark.Extender{
"Typographer": extension.Typographer,
"CJK": extension.CJK,
"BlockAttr": ga.Extension,
+ "InlineAttr": gia.Extension,
}
var parsersMap = map[string]parser.Option{