Skip to content

Releases: swiftlang/swift-cmark

Release 0.5.0

17 Sep 15:13
3ccff77
Compare
Choose a tag to compare

This code is based on the version of swift-cmark that was built into the Swift 6.0 release.

What's Changed

  • Swift markdown support by @compnerd in #69
  • build: remove extra defines on Windows by @compnerd in #68
  • build: include include in INTERFACE_INCLUDE_DIRECTORIES by @compnerd in #70
  • Add define for GNU glibc extensions by @bnbarham in #71
  • build: add cmark-gfm-config to allow wiring up builds by @compnerd in #72
  • [6.0] Build with Position Independent Code unconditionally by @bc-lee in #74

New Contributors

Full Changelog: 0.4.0...0.5.0

Swift 5.10.1 Release

06 Jun 18:26
3bc2f3e
Compare
Choose a tag to compare
integrate changes from cmark-gfm 0.29.0.gfm.12 and gfm.13 (#61)

* Normalize nomenclature: marker row vs. delimiter row

The code for the table extension used the term 'marker row',
but the spec calls it 'delimiter row'.

This change normalizes the terminology so that it's consistent.

* Update autolink.c

```
../../../../ext/markly/autolink.c: In function ‘postprocess_text’:
../../../../ext/markly/autolink.c:364:31: warning: passing argument 1 of ‘validate_protocol’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  364 |         if (validate_protocol("mailto:", data + start + offset + max_rewind, rewind, max_rewind)) {
      |                               ^~~~~~~~~
../../../../ext/markly/commonmark.c: In function ‘S_render_node’:
../../../../ext/markly/autolink.c:299:36: note: expected ‘char *’ but argument is of type ‘const char *’
  299 | static bool validate_protocol(char protocol[], uint8_t *data, size_t rewind, size_t max_rewind) {
      |                               ~~~~~^~~~~~~~~~
```

* Update commonmark.c

```
../../../../ext/markly/commonmark.c:405:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  405 |       emph_delim = "_";
      |                  ^
```

* Fix GHSL-2023-119: prevent quadratic performance by not allowing very deeply nested footnote definitions.

* Fix GHSL-2023-117: store cell index on node so that it doesn't need to be recomputed during rendering.

* Fix GHSL-2023-118: limit number of autocompleted table cells to prevent DOS.

* Expose CMARK_NODE_FOOTNOTE_DEFINION literal value.

In addition, fix a bug where the length of the literal value was
calculated AFTER the actual literal string (null terminated) was
allocated.

* Update src/node.h

Co-authored-by: Phill MV <[email protected]>

* Rename custom_int -> cell_index.

* Add newline

* Remove unnecessary scope.

* Create codeql.yml

* Changelog and version bump for 0.29.0.12

* Fix format specifier for printing a size_t

* Changelog and version bump for 0.29.0.13

* move cell index into node_cell_data

---------

Co-authored-by: Waldir Pimenta <[email protected]>
Co-authored-by: Samuel Williams <[email protected]>
Co-authored-by: Kevin Backhouse <[email protected]>
Co-authored-by: Phill MV <[email protected]>
Co-authored-by: Bas Alberts <[email protected]>
Co-authored-by: Bas Alberts <[email protected]>

Swift 5.10 Release

06 Mar 15:39
3bc2f3e
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: swift-5.9.2-RELEASE...swift-5.10-RELEASE

swift-4.2.2-RELEASE: Merge pull request #4 from llvm-beanz/generate-cmark-exports

05 Feb 01:44
Compare
Choose a tag to compare

Swift 4.2.1 Release

10 Nov 17:32
Compare
Choose a tag to compare
Merge pull request #4 from llvm-beanz/generate-cmark-exports

[CMake] Export the CMark targets

Swift 4.2 Release

26 Sep 22:52
Compare
Choose a tag to compare
Merge pull request #4 from llvm-beanz/generate-cmark-exports

[CMake] Export the CMark targets