Provide a programmatic way to disable processing queries in specific context
See original GitHub issueIs your feature request related to a problem? Please describe.
Currently using the MarkdownRender.renderMarkdown
method from obsidian in my plugin RSS Reader.
The content that is being rendered is not controlled by me.
If there is any content that looks like an query, dataview will try to parse it and show an error message.
Describe the solution you’d like
A way for me to disable the parsing querys/codeblocks for a markdown renderer,
maybe by including a special string in the sourcePath
.
Describe alternatives you’ve considered
Replacing the problematic pieces, before passing the content to the renderMarkdown
method,
but this will just be undone by obsidian internally.
Additional context The calling line: https://github.com/joethei/obsidian-rss/blob/7e9083cb2a679691c4a05e1b412f10274c403a14/src/modals/ItemModal.ts#L266
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
I’ll track the Run Code / explicit opt-in functionality in another security ticket. See #615.
Great, good workaround. I’ve added
?no-dataview
as a way to disable dataview in a document / render.