2

I converted content using this

Sockets.renderPreview = async function (socket, content) {
    return await plugins.hooks.fire('filter:parse.raw', content);
};

How to convert to raw data like initial ?

you are viewing a single comment's thread
view the rest of the comments
[-] baris@community.nodebb.org 1 points 3 weeks ago

Sounds like you want to convert html back to markdown, NodeBB doesn't provide any builtin function for this. You will need to use something like https://github.com/mixmark-io/turndown

this post was submitted on 04 Feb 2025
2 points (100.0% liked)

General Discussion

0 readers
4 users here now

A place to talk about whatever you want

founded 1 month ago