apify / apify-shared-js

Utilities and constants shared across Apify projects.
https://www.npmjs.com/package/@apify/utilities
Apache License 2.0
12 stars 11 forks source link

fix(markdown): upgrade dependency on `marked` to v13 #468

Closed B4nan closed 2 months ago

B4nan commented 2 months ago

BREAKING CHANGE: Node 18 is required for @apify/markdown package, since marked added this constraint too via engines field. The tests are still passing even with node 14, so this is a rather artificial constraint.

Signature of customHeadingRenderer changed:

-customHeadingRenderer(text: string, level: 1 | 2 | 3 | 4 | 5 | 6, raw: string): string
+customHeadingRenderer({ depth, text, raw }: Tokens.Heading): string