refactor(blogo,plugins,plaintext): move plaintext renderer to dedicated file

This commit is contained in:
Guz
2025-01-13 16:31:23 -03:00
parent 93293b7f24
commit 03695e62fa

View File

@@ -1,3 +1,18 @@
// Copyright 2025-present Gustavo "Guz" L. de Mello
// Copyright 2025-present The Lored.dev Contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package blogo
import (
@@ -14,7 +29,7 @@ func NewPlainTextRenderer() Plugin {
}
func (p *painTextRenderer) Name() string {
return "blogo-renderer-plaintext"
return "blogo-plaintext-renderer"
}
func (p *painTextRenderer) Render(f fs.File, w io.Writer) error {