Closed mclearc closed 1 year ago
It was not a bug, but the function was made before the API can support converting DJS, inline etc.
But, now It can, as I checked the code of @oleeskild
Is there something I can do on my end or does the package code just need to be updated?
I updated quickly a beta update to try if everything is good! I need to make some test before make it production. You can update with BRAT!
@Lisandra-dev Thanks for moving so quickly with this. I can attest that things are improved but I've noticed that inline dataview that is in a callout doesn't work (see screenshot). Is this expected?
Maybe it's the table? They seems to have be wrongly formatted... I need to check
Here's a copy of that file (though the above one works too) if it helps...
---
share: true
date created: Thursday, July 27th 2023, 7:41:20 am
date modified: Friday, July 28th 2023, 8:37:51 am
whichParty: Party 1
tags:
- ermis
- party
- pc
ancestry: Plasmoid
gender: N/A
sexuality: Asexual
pronouns: They/Them
condition: Healthy
aliases:
- "**`=this.file.name`**"
type: pc
name: Blurg
class: Wizard
subclass: null
level: 2
background: Feylost
strength: 13
dexterity: 16
constitution: 14
intelligence: 19
wisdom: 13
charisma: 10
hd: 1d6
ac: "12"
speed: 30
alignment: null
occupation: null
associatedGroup: null
associatedReligion: null
location: null
traits:
- Weird
- Supercillious
- Inquisitive
goals: Learn the news about Ooze
linter-yaml-title-alias: "**`=this.file.name`**"
art: "![[blerg.png]]"
---
> [!infobox]
> # `=this.file.name` (`=this.pronouns`)
> **Pronounced:** "`=this.pronounced`"
> ![[blerg.png|cover hm-sm]]
> ###### Bio
> |
> ---|---|
> **Age** | `=this.age` |
> **Sex** | `=this.gender` |
> **Sexuality** | `=this.sexuality` |
> **Occupation(s)** | `=this.occupation` |
> **Group(s)** | `=link(this.associatedGroup)` |
> **Religion(s)** | `=link(this.associatedReligion)` |
> **Alias(es)** | `=this.alias` |
> **Current Location** | `=link(this.location)` |
# **`=this.file.name`**
> [!info|bg-c-purple]- Overview
> Blurg is a plasmoid with a mysterious past.
> [!column|clean no-title] Traits
> > [!metadata|text-Center bg-c-blue]+ Traits
> > `=this.traits`
>
> > [!metadata|text-Center bg-c-blue]+ Goals
> > `=this.goals`
## Stats & Info
> [!column|clean no-title] Stats
> > [!info|text-Center bg-c-yellow]+ Ability Scores
> >
> > | Ability | Score | Mod |
> > |--------------|----------------------|--------------------------------------------|
> > | Strength | `=this.strength` | `= round(sum(this.strength - 10) / 2)` |
> > | Dexterity | `=this.dexterity` | `= round(sum(this.dexterity - 10) / 2)` |
> > | Constitution | `=this.constitution` | `= round(sum(this.constitution - 10) / 2)` |
> > | Intelligence | `=this.intelligence` | `= round(sum(this.intelligence - 10) / 2)` |
> > | Wisdom | `=this.wisdom` | `= round(sum(this.wisdom - 10) / 2)` |
> > | Charisma | `=this.charisma` | `= round(sum(this.charisma - 10) / 2)` |
>
> > [!info|text-Center bg-c-yellow]+ Other Info
> > - **Ancestry:** `=this.ancestry`
> > - **Background:** `=this.background`
> > - **Class:** `=this.class`
> > - **Level:** `=this.level`
> > - **Alignment:** `=this.alignment`
> > - **Condition:** `=this.condition`
> > - **Hit Dice:** `=this.hd`
> > - **AC:** `=this.ac`
> > - **Speed:** `=this.speed`
> > - **Initiative:** \+ `= round(sum(this.dexterity - 10) / 2)`
## Relationships
> [!column|dataview|clean no-title] Acquaintances
> > [!metadata|text-Center bg-c-green]- Friends & Family
> > None known
>
> > [!metadata|text-Center bg-c-red]- Rivals
> > TBD
>
## Biographical Details
TBD
And this is how it looks in obsidian...
Work on my side
BTW, for the blog, you need to have >>
instead of > >
!
I have a linter function for this if you need.
Btw I can repro your issue, but don't understand why it does that when in a multiple callout. Will work on it!
Thank you! -- I'll experiment as well. I use obsidian linter so I'd love to add your linter function as a custom command! :)
Okay, found the problem. If their is no result (rendered as "-
" if null) the code leave it as it!
I will update to use the rendering settings of Dataview :)
Fixed in the last beta !
I'm sorry to bother about this again but I keep seeing this error:
I've tried several different permutations though none work. Here's the code again.
And I've updated via BRAT so I should be on the most recent version. Again, appologies for the bother.
>[!infobox]
># `=this.file.name` (`=this.pronouns`)
>**Pronounced:** "`=this.pronounced`"
>![[blurg.png|cover hm-sm]]
> ###### Bio
> |
>---|---|
>| **Age** | `=this.age` |
>| **Sex** | `=this.gender` |
>| **Sexuality** | `=this.sexuality` |
>| **Occupation(s)** | `=this.occupation` |
>| **Group(s)** | `=link(this.associatedGroup)` |
>| **Religion(s)** | `=link(this.associatedReligion)` |
>| **Alias(es)** | `=this.alias` |
>| **Current Location** | `=link(this.location)` |
Yeah, your table is not goodly formatted for mkdocs. You need:
|||
before the |---|---|
). >
and |
as > | **Age** |
Amazing -- all the permutations I tried and not the right one :/
Thanks so much for all your help today! Amazing work!!
Issue validation
Command used
Refresh published and upload new notes
Plugin version
6.3.2
Describe the bug
I have files in which I use simple inline dataview queries (e.g.
=this.name
). However these do not render (see example file).How to reproduce ?
No response
Minimal Reproducible Example
share: true date created: Thursday, July 27th 2023, 7:41:20 am date modified: Friday, July 28th 2023, 8:37:51 am whichParty: Party 1 tags:
=this.file.name
" type: pc name: Blurg class: Wizard subclass: null level: 2 background: Feylost strength: 13 dexterity: 16 constitution: 14 intelligence: 19 wisdom: 13 charisma: 10 hd: 1d6 ac: "12" speed: 30 alignment: null occupation: null associatedGroup: null associatedReligion: null location: null traits:Inquisitive goals: Learn the news about Ooze linter-yaml-title-alias: "
=this.file.name
" art: "![[blerg.png]]"=this.file.name
Stats & Info
Relationships
Biographical Details
TBD
Configuration
Relevant log output
No response
OS
No response
Anything else?
You can see the errored output here:
Obsidian information