pandoc-utils-0.4.0: Utility functions to work with Pandoc in Haskell applications.
Safe HaskellNone
LanguageHaskell2010

Text.Pandoc.Filter.Utils.AttrBuilder

Description

This module contains some utility functions for building attributes.

Synopsis

Attribute builders

addClass Source #

Arguments

:: Attr

Original attributes.

-> Text

Name of the class.

-> Attr

New attributes.

Append a new class to attributes.

addClasses Source #

Arguments

:: Attr

Original attributes.

-> [Text]

A list of class names.

-> Attr

New attributes.

Append a list of classes to attributes.

addKVPair Source #

Arguments

:: Attr

Original attributes.

-> (Text, Text)

A key-value pair.

-> Attr

New attributes.

Append a new key-value pair to attributes.

addKVPairs Source #

Arguments

:: Attr

Original attributes.

-> [(Text, Text)]

A list of key-value pairs.

-> Attr

New attributes.

Append new key-value pairs to attributes.

setId Source #

Arguments

:: Attr

Original attributes.

-> Text

The id of the attrbute.

-> Attr

New attributes.

Set the id of attributes.