Package harticle provides an http.Handler middleware to render harticle to HTML, for the Go programming language.
Find a file
2025-09-09 21:05:19 -07:00
internal/bluemondays refactor 2025-09-06 17:20:35 -07:00
author.go refactored 2025-09-09 21:05:19 -07:00
controller.go various 2025-09-09 10:40:00 -07:00
errors.go initial commits 2025-09-04 21:30:02 -07:00
extractauthors.go refactored 2025-09-09 21:05:19 -07:00
extractcategories.go various 2025-09-09 10:40:00 -07:00
extracttitle.go refactored 2025-09-09 21:05:19 -07:00
fileextension.go harticle.FileExtension 2025-09-05 13:44:47 -07:00
go.mod refactored 2025-09-09 21:05:19 -07:00
go.sum refactored 2025-09-09 21:05:19 -07:00
handler.go various 2025-09-09 10:49:55 -07:00
htmlrenderer.go various 2025-09-09 10:40:00 -07:00
LICENSE initial commits 2025-09-04 21:28:58 -07:00
mediatype.go various 2025-09-09 10:40:00 -07:00
mediatypes.go various 2025-09-09 10:40:00 -07:00
README.md initial commits 2025-09-04 21:28:58 -07:00
sanitizebytes.go refactor 2025-09-06 06:16:33 -07:00
sanitizestring.go refactor 2025-09-06 06:16:33 -07:00
simplehtmlrenderer.go various 2025-09-09 10:40:00 -07:00
transformtoactivity.go various 2025-09-09 10:40:00 -07:00
transformtoactivity_test.go various 2025-09-09 10:40:00 -07:00

go-harticle

Package harticle provides an http.Handler middleware to render harticle to HTML, for the Go programming language.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/codeberg.org/reiver/go-harticle

GoDoc

Example

Here is an example of using harticle.Handler to wrap another handler, to provide mardown to HTML rendering.

import "codeberg.org/reiver/go-harticle"

// ...

var handler http.Handler = ...

handler = harticle.Wrap(handler, harticle.SimpleRenderer) // <---------

err := http.ListenAndServe(":8080", handler)
if nil != err {
	return err
}

Import

To import package harticle use import code like the following:

import "codeberg.org/reiver/go-harticle"

Installation

To install package harticle do the following:

GOPROXY=direct go get codeberg.org/reiver/go-harticle

Author

Package harticle was written by Charles Iliya Krempeaux