Is there a way to teach obsidian sync how to preview non md files?

Hey, I’m developing a plugin to view a particular non markdown text file format in obsidian. It’s mostly working but I noticed that obsidian sync’s history view (Open version history), just says unable to preview…

How can I teach obsidian sync history to show the file?

Yeah in particular how do I write a preview script / what do you mean? I already do associate the filetype correctly and have written a working custom view. I must say that I do suspect that your answer is LLM generated in particular given it includes the phrase “reach out to Obsidian support or community forums.”, which is kinda odd to say on the forum isn’t it?

Does anybody know an actual way to solve this problem. Or alternatively is this known to be not supported?

As far as I know, there is no public API related to Sync. You might be able to achieve the goal by monkey-patching iternal methods, but I wouldn’t recommend that.

Just to unearth knowledge acquired on discord. Obsidian core members confirmed that currently this is not supported in any way.