go.bigb.es/confluence-md-utilities

v0.1.0
Doc Versions Source

Constants

const (
	DefaultMarkerStart = "<!-- MD_CONTENT_START -->"
	DefaultMarkerEnd   = "<!-- MD_CONTENT_END -->"
)

Functions

f func Embed

src
func Embed(templateXML, content, markerStart, markerEnd string) (string, error)

Embed inserts content between marker comments in a template. The markers should be XML comments like <!-- MD_CONTENT_START --> and <!-- MD_CONTENT_END -->.

f func Extract

src
func Extract(xmlDoc, markerStart, markerEnd string) (string, error)

Extract returns the content between marker comments in a Confluence XML document.