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
import{getProcessor}from'bytemd'lethastgetProcessor({plugins: [{rehype: (p)=>p.use(()=>(tree)=>{hast=tree}),},],}).processSync(value);console.log(hast)// h1-h6 is what you want
Any get catalog api had been exported? I saw catelog in editor toolbar, but how can I get catalog without editor? Just like in a post detail page.
My html string get by
getProcessor
api, it imported frombytemd
, so I want to ask that did you exported get catelog api likegetProcessor
.Thanks.
The text was updated successfully, but these errors were encountered: