Comments (1)
First of all, you need to update your dataview plugin, the current version is 0.5.64.
Secondly, to include a code segment with triple backticks, enclose the area with a quadruple backtick (aka ````
before and after the block).
I think the page is mostly rendered before embedded, so then it make sense that it still shows the Script\\Test.md
as the current file. I'm not entirely sure what you want when you say reuse code blocks, but you might want to look into using dv.view()
or possibly dv.execute()
in combination with dv.io.load()
. Both of them are capable of executing queries defined in another file, and they can be persuaded as to what is considered the current file. (Also all of the dv.query()
& co functions can take a parameter to indicate that another file is to be seen as the current file.
In other words, the behaviour you're describing I wouldn't describe as a bug, it's intended behaviour to allow for the embedding to be the same as if it was seen in the original form.
from obsidian-dataview.
Related Issues (20)
- Ability to Disable `Automatic view refreshing` for Select Queries
- index() array function?
- Can't load a json file in the .obsidian directory HOT 2
- Code block renders wrong with DataView HOT 7
- Bug report
- Dataviewjs: JS logic is not re-evaluated upon refresh? HOT 2
- Read-only Task view
- backstick equal error parsing HOT 1
- Export DataviewInlineApi from typings
- Minify main.js
- file.day does not work HOT 4
- Bug report
- Invalid source maps in Debug mode
- Bug report - Inline Query inside Table, inside a canvas node not displaying correctly HOT 1
- String literal being incorrectly coerced
- Bug report
- Zipped release for manual install
- Uncaught TypeError
- Metadata Browser
- Making Buttens able to create folders
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-dataview.