You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first of all, thanks for marked, it's awesome.
I'm in the process of upgrading a personal app from "marked": "^1.2.8",, and it's easy sailing, except for the thing where the baseUrl option was removed from the main parsing function (markedjs/marked#2936).
My app has changing baseUrls depending on the document I'm trying to parse. With the previous atomic formulation marked(doc, {baseUrl: theBaseUrlOfDoc}), this was no problem, but I have some issues incorporating the new way of doing things, which I guess amounts to marked.use(baseUrl(theBaseUrlOfDoc)) followed by marked.parse(doc). It's like the new baseUrl is not applied properly and multiple (updating) calls marked.use are not supported.
Can you point me in the right direction with regards to upgrading this usecase to your changed plugin-based API? Any hints greatly appreciated. For now, I'm stuck upgrading to ^7 which doesn't have this breaking change.
Cheers, Georg
The text was updated successfully, but these errors were encountered:
Hi guys,
first of all, thanks for
marked
, it's awesome.I'm in the process of upgrading a personal app from
"marked": "^1.2.8",
, and it's easy sailing, except for the thing where thebaseUrl
option was removed from the main parsing function (markedjs/marked#2936).My app has changing baseUrls depending on the document I'm trying to parse. With the previous atomic formulation
marked(doc, {baseUrl: theBaseUrlOfDoc})
, this was no problem, but I have some issues incorporating the new way of doing things, which I guess amounts tomarked.use(baseUrl(theBaseUrlOfDoc))
followed bymarked.parse(doc)
. It's like the new baseUrl is not applied properly and multiple (updating) calls marked.use are not supported.Can you point me in the right direction with regards to upgrading this usecase to your changed plugin-based API? Any hints greatly appreciated. For now, I'm stuck upgrading to
^7
which doesn't have this breaking change.Cheers, Georg
The text was updated successfully, but these errors were encountered: