question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide a programmatic way to disable processing queries in specific context

See original GitHub issue

Is 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:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
blacksmithgucommented, Jan 21, 2022

I’ll track the Run Code / explicit opt-in functionality in another security ticket. See #615.

2reactions
blacksmithgucommented, Jan 21, 2022

Great, good workaround. I’ve added ?no-dataview as a way to disable dataview in a document / render.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Queries - Apollo GraphQL Docs
This article shows how to fetch GraphQL data in React with the useQuery hook and attach the result to your UI. You'll also...
Read more >
React-Query: How to useQuery when button is clicked
According to the API Reference, you need to change the enabled option to false to disable a query from automatically running.
Read more >
Contexts and Dependency Injection - Quarkus
In certain situations, it is practical to obtain a bean instance programmatically via an injected javax.enterprise.inject.Instance and Instance.get() . However, ...
Read more >
16. Transaction Management - Spring
The TransactionStatus interface provides a simple way for transactional code to control transaction execution and query transaction status.
Read more >
Creating Shortcut Menu Handlers - Win32 apps | Microsoft Learn
Shortcut menu handlers, also known as context menu handlers or verb handlers, are a type of file type handler. These handlers may be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found