jf2

package
v0.0.0-...-7227349 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package jf2 converts microformats to JF2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanHTML

func CleanHTML(s string) (string, error)

CleanHTML removes white-space:pre from html

func ConvertItem

func ConvertItem(item interface{}, md *microformats.Microformat)

ConvertItem converts items based on struct tags

func SimplifyMicroformatDataAuthor

func SimplifyMicroformatDataAuthor(md *microformats.Data) (microsub.Card, bool)

SimplifyMicroformatDataAuthor simplfies a microformats.Data object containing a Card

func SimplifyMicroformatDataItems

func SimplifyMicroformatDataItems(md *microformats.Data) []microsub.Item

SimplifyMicroformatDataItems simplfies a microformats.Data object

func SimplifyMicroformatItem

func SimplifyMicroformatItem(mdItem *microformats.Microformat, author microsub.Card) (microsub.Item, bool)

SimplifyMicroformatItem simplfies a Microformat object

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL