Releases: henry-luo/mark
Releases · henry-luo/mark
Syntax and API fine tuning
- Binary object syntax changed from
{: ... }
to[# ... ]
. - Array-like APIs, like map(), filter(), reduce(), etc., have been made to work when the 'length' property is set on the Mark object.
Syntax and API fine tuning
- Changed .length() to .length, so that Mark object is now array-like, thus functional libraries that work with array-like data can also work with Mark object without change.
- Added Mark.lengthOf() to get content length of a Mark object. This is useful when the .length property is defined on the Mark object.
- Introduced double ?? escape to Mark pragma.
- Mark stringify() now omits comma.
Syntax fine-tuning
Some minor syntax fine-tuning:
- String value need not be quoted if it is an identifier.
- Block comment
/* ... */
can now be nested. - Added an alternative pragma syntax
(? ... ?)
. - Content normalization for
Changed pragma delimiters
- Changed Mark pragma delimeters from back ticks `...` to round brackets (...).
- Made the symbols used by Mark public.
Simplified pragma syntax
In this beta release, Mark pragma syntax has been simplified from {...} to `...`.
As its syntax is now clearly distinguished from Mark and JSON object, it's parsing and usage is much simpler.
Binary data support and separated mutative API
- Binary data can now be encoded in base64 or ascii85;
- Mutative API functions are now separated into sub-module mark.mutate.js;
- Added new API functions .each() and .text();
- Added Mark('{source}') shorthand support;
- Added XML and HTML stringification indentation support;
- Some minor bug fixes and code clean up;
New release to support optional comma
A minor release to support optional comma in Mark.