Generating code blocks with datacore

What I’m trying to do

Has anyone tried generating code blocks with datacore?

Things I have tried

This just outputs raw text:

return function View() {
    return <p>```<br />fff<br />```<br /></p>;
}  

I’m currently able to do this OK with dataviewjs in order to generate qr codes using the qrcode plugin. Just curious if a similar result is possible with datacore.

As an alternative, I am also attempting to load a QRcode library into dataview using require. It sounds like this was possible in 2021:

However, testing this I receive an error:

ReferenceError: require is not defined

2021 was some time ago. Is it currently possible to import js files into dataviewjs? I may also look to see if something similar is possible with datacore.