postprocess

postprocess

apply()

Applies a list of post-processing functions

Arguments

NameTypeRequiredDefaultOptionsDescription
inputstringYes
functionsstringYes

gist()

Parses out gist links and replaces them with embeds

Arguments

NameTypeRequiredDefaultOptionsDescription
inputstringYes

googlecalendar()

Parses out google calendar links and replaces them with embeds

Arguments

NameTypeRequiredDefaultOptionsDescription
inputstringYes
widthnumericNo600
heightnumericNo400
firstDayOfWeeknumericNo21:sundag,2:monday,7:saturday

init()

Arguments

polldaddy()

Inserts PollDaddy embed

Arguments

NameTypeRequiredDefaultOptionsDescription
None
NameTypeRequiredDefaultOptionsDescription
inputstringYes

regexLineMatch()

Creates a Java regular expression match object

Arguments

NameTypeRequiredDefaultOptionsDescription
inputstringYes
searchstringYes

regexLineReplace()

Uses Java regular expressions to replace

Arguments

NameTypeRequiredDefaultOptionsDescription
inputstringYes
searchstringYes
replacestringYes

regexMatch()

Creates a Java regular expression match object

Arguments

NameTypeRequiredDefaultOptionsDescription
inputstringYes
searchstringYes

regexReplace()

Uses Java regular expressions to replace

Arguments

NameTypeRequiredDefaultOptionsDescription
inputstringYes
searchstringYes
replacestringYes

removewhitespace()

Replace all consecutive spaces with one space

Arguments

NameTypeRequiredDefaultOptionsDescription
inputstringYes

rewriteImages()

Updates /images src and links to point to the CDN URLs

Arguments

NameTypeRequiredDefaultOptionsDescription
inputstringYes

storify()

Embed Storify articles

Arguments

NameTypeRequiredDefaultOptionsDescription
inputstringYes

twitter()

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

Arguments

NameTypeRequiredDefaultOptionsDescription
inputstringYes

unescapeUnicode()

Replaces unicode escape sequences with actual characters

Arguments

NameTypeRequiredDefaultOptionsDescription
inputstringYes

vimeo()

Parses out vimeo links and replaces them with embeds

Arguments

NameTypeRequiredDefaultOptionsDescription
inputstringYes
widthnumericNo500
heightnumericNo281

vine()

Parses out vine links and replaces them with embeds

Arguments

NameTypeRequiredDefaultOptionsDescription
inputstringYes
widthnumericNo500
heightnumericNo500
typestringNosimpleThe embed style: simple, postcard

youtube()

Parses out youtube links and replaces them with embeds

Arguments

NameTypeRequiredDefaultOptionsDescription
inputstringYes
widthnumericNo560
heightnumericNo315