https://www.dendron.so/ logo
<@!444876755820609536> so the way the preview wor...
# dev
k
@User so the way the preview works is that there's a giant
parse
loop that scans the plaintext and converts it to html. when it encounters a ref, we have a ref handler that will read the file and convert it. for refs, this is all done within the
parseNoteRefs
plugin: https://github.com/dendronhq/dendron-template/blob/master/vault/dendron.dev.design.engine.md#parsing-note-references if you come up with a good way of doing events/handlers besides just registering all ref handlers at startup, feel free to come up with a proposal 🙂