postprocess

postprocess

postprocess

Post processing functionality

Metadata

apply()

Applies a list of post-processing functions

Arguments

Name Type Required Default Options Description
input string Yes
functions string Yes

gist()

Parses out gist links and replaces them with embeds

Arguments

Name Type Required Default Options Description
input string Yes

init()

Arguments

Name Type Required Default Options Description
None

regexMatch()

Creates a Java regular expression match object

Arguments

Name Type Required Default Options Description
input string Yes
search string Yes

regexReplace()

Uses Java regular expressions to replace

Arguments

Name Type Required Default Options Description
input string Yes
search string Yes
replace string Yes

removewhitespace()

Replace all consecutive spaces with one space

Arguments

Name Type Required Default Options Description
input string Yes

twitter()

Parses out twitter status links and uses the twitter api to replace them with embeds

Arguments

Name Type Required Default Options Description
input string Yes

vimeo()

Parses out vimeo links and replaces them with embeds

Arguments

Name Type Required Default Options Description
input string Yes
width numeric No 500
height numeric No 281

youtube()

Parses out youtube links and replaces them with embeds

Arguments

Name Type Required Default Options Description
input string Yes
width numeric No 560
height numeric No 315