MassageTXT Guide
This document is a work-in-progress.

Quick Introduction

Transformations are specified as an Expression.

An Expression begins with a Variable, usually $input.

An Operation follows the Variable, for example lines:

$input.lines

Sometimes an Operation takes arguments

$input.prepend(Hello )

API Reference

String Operations

lowercase

split(LITERAL)

lines

conform(REGEX)

capture(REGEX)

prepend(LITERAL)

postpend(LITERAL)

markdown

Object Operations

remap(MAPPING)

print(LITERAL)

Array Operations

first

last

reverse

unique

group(LITERAL)

conform(REGEX)

capture(REGEX)

remap(MAPPING)

join(LITERAL)

MarkdownTree Operations

sections

content(LITERAL)

items

paragraphs