aboutsummaryrefslogtreecommitdiffhomepage
path: root/markup/org
diff options
context:
space:
mode:
Diffstat (limited to 'markup/org')
-rw-r--r--markup/org/convert.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/markup/org/convert.go b/markup/org/convert.go
index a951e6fe1..4d6e5e2fa 100644
--- a/markup/org/convert.go
+++ b/markup/org/convert.go
@@ -23,19 +23,18 @@ import (
)
// Provider is the package entry point.
-var Provider converter.NewProvider = provide{}
+var Provider converter.ProviderProvider = provide{}
type provide struct {
}
func (p provide) New(cfg converter.ProviderConfig) (converter.Provider, error) {
- var n converter.NewConverter = func(ctx converter.DocumentContext) (converter.Converter, error) {
+ return converter.NewProvider("org", func(ctx converter.DocumentContext) (converter.Converter, error) {
return &orgConverter{
ctx: ctx,
cfg: cfg,
}, nil
- }
- return n, nil
+ }), nil
}
type orgConverter struct {