All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.5.1 - 2021-05-04
- Added
replace(child:with:)
methods for container nodes. #26 by @mattt.
- Fixed documentation for
List
. #29 by @mattt.
- Changed implementation of
Hashable
conformance forNode
. Previously the hash value of a node was computed from its content. Now it's computed from the opaque cmark pointer. #30 by @Lukas-Stuehrk.
0.5.0 - 2021-01-14
- Added support for the visitor pattern,
by adding
protocol Visitor
/protocol Visitable
&enum VisitorContinueKind
. #13 by @regexident.
- Fixed document parsing options. #21 by @regexident.
- Fixed memory leaks. #22 by @regexident.
0.4.0 - 2020-05-01
- Added a changelog. #17 by @mattt.
- Changed
render
method, as well as nestedRenderingFormat
andRenderingOptions
types, fromDocument
toNode
. #18 by @mattt.
- Fixed abbreviation for "Universal Declaration of Human Rights" (UDHR) throughout project. #12 by @regexident.
0.3.2 - 2020-04-24
- Fixed implementations of
insert
methods. #10 by @Lukas-Stuehrk
0.3.1 - 2020-04-23
- Fixed error caused by missing a case for
CMARK_NODE_DOCUMENT
inNode.create
. #8 by @mattt.
- Removed
assertionFailure
inNode
cmark_node_type
class property. 1903d99 by @mattt.
0.3.0 - 2020-04-10
- Added implementations of
buildIf
andbuildEither
toStringBuilder
. #5 by @mattt.
- Breaking Change.
Changed
HTML
, renaming it toRawHTML
. #4 by @mattt. - Changed
Node
to conform toCodable
. #6 by @mattt. - Changed access level of
Node
fromopen
topublic
. #6 by @mattt. - Change access level for APIs referencing
cmark_node
tointernal
#6 by @mattt. - Changed swift-cmark dependency to more recent version. 2239c9c by @mattt.
- Fixed error 'Top-level Document encoded as string JSON fragment.' 727e38f by @mattt.
0.2.2 - 2020-02-06
- Fixed bug in how closed ranges are constructed from reported source positions. #2 by @mattt.
0.2.1 - 2020-01-25
- Added
ForEach
type toCommonMarkBuilder
module. 3cee5da by @mattt. - Added implementations of
buildIf
andbuildEither
toCommonMarkBuilder
. a125d23 by @mattt. - Added convenience initializers to
List
for mapping sequence of values. ec61c45 by @mattt.
- Changed
List.Item
to allow initialization withInline
orBlock
children. c21468c0 by @mattt. - Changed inline types conform to
ListItemConvertible
. ffe900bf by @mattt. - Changed access of children to
public
and conformed them toBlock & Node
. 5e88c519 by @mattt
- Removed conformance of
Document
toCustomReflectable
. 6b92588e by @mattt. - Removed
Child
typealias in favor of explicit compound types. c9a5b199 by @mattt.
0.2.0 - 2020-01-24
- Added CommonMarkBuilder interface. 79a98dd by @mattt.
- Changed access level for
Node
to open. 79a98dd by @mattt. - Changed initialization pattern of
Node
. 79a98dd by @mattt. - Changed
ListItem
, renaming it toList.Item
. 79a98dd by @mattt. - Changed initializers for
Node
subclasses 79a98dd by @mattt.
- Removed
BulletList
andOrderedList
, consolidating them into into a newList
type. 79a98dd by @mattt.
0.1.2 - 2020-01-22
- Changed cmark dependency to pin to a tag in a fork. 2f5a2a4 by @mattt.
0.1.1 - 2020-01-22
- Changed cmark dependency to pin to a specific revision. 90704ff by @mattt.
0.1.0 - 2020-01-22
- Added node creation and mutation functionality. a41ba246 by @mattt.
0.0.1 - 2020-01-27
Initial release.