markedjs / marked

A markdown parser and compiler. Built for speed.
https://marked.js.org
Other
32.77k stars 3.38k forks source link

Marked(string) Always retorning [object object] #3389

Closed gabrielpereiraa closed 2 weeks ago

gabrielpereiraa commented 1 month ago

Marked version: 13.0.2

Describe the bug Marked(string) Always retorning [object object]

had to downgrade to version 12.0.0 to make it work

simonMoisselin commented 1 month ago

Same for listitem

UziTech commented 1 month ago

If you give us code to reproduce the error we can try to help.

HearseDev commented 1 month ago

rolling back to 12.0.0 fixes this also: "marked-gfm-heading-id": "^3.0.6",

Looks like its list items

const md = marked.parse(markdown) as string
console.log(md) // [object object]

Image below, all three are supposed to be list items

image
UziTech commented 1 month ago

It works for me with the latest version of marked-gfm-heading-id

rsivan commented 3 weeks ago

This should be considered critical, as all of angular.dev is showing unprocessed links. See for example https://angular.dev/essentials/components#defining-a-component

UziTech commented 3 weeks ago

@rsivan Looks like that is fixed in https://github.com/angular/angular/pull/57377