-
-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Dataview: Enable workarounds to prevent Obsidian from rendering inline fields as reference style links #1916
fix: Dataview: Enable workarounds to prevent Obsidian from rendering inline fields as reference style links #1916
Conversation
2ceaa37
to
c35fc2d
Compare
c35fc2d
to
f152e58
Compare
Thank you very much indeed. I should have time to review and merge this and #1878 later today and then do a release. |
FYI I'm going to push one or two minor edits to the docs on your branch before merge, in the interests of releasing more quickly. I hope you don't mind. |
Obsidian Publish only searches file names and headings.
I was all set to merge this but there is something going on in the formatting of the documentation that I don't understand...
|
I meant to say that it would be worth recording which fix the Tasks modal uses, so people know they don't need to keep on applying the fix manually themselves... |
Will do
Adds an underline to mimic how Obsidian styles links. Got it from here https://forum.obsidian.md/t/is-there-a-way-to-underline-text/43745 This is what it looks like when it renders correctly.
I think this is a rendering bug, and I was really hoping it was just isolated to me. Didn't have time to narrow down if it was Obsidian or Tasks that was causing it. If I'm recalling correctly, editing the language tag in 2 fixed the issue for me. Unsure if this bug is reproducible in Obsidian Publish also. I can see if I can reformat that section to circumvent the issue altogether. |
Ah - I was going to say that Tasks isn't enabled in the docs vault, but actually it is... I should remove it, to ensure that rendering in the docs is closer to that in Publish. |
I think this is a bug caused by Tasks. I can reproduce this reliably by:
Result: With the following steps, the page renders as expected:
Result: In light of this, may not need to block the merge over it. Disabling And there's a repro in the event this requires a later investigation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested this on iPhone as well, out of an abundance of caution.
This works really well. Thank you for a quick and thorough fix! ❤️ |
Its rendering of task lines in docs caused confusion and unwanted rendering in the docs during work on #1916.
Description
Resolves #1913
This PR is a hotfix that adds better support for the workarounds suggested in #1913, that get around Obsidian rendering sequential inline fields (
[start::2023-04-25][priority::high]
) as reference-style links:Specifically this PR:
,
).Note: No work was done on suggestions since users are expected to manually insert brackets (and now spaces and/or commas) themselves.
Motivation and Context
Hotfix for #1913
How has this been tested?
Screenshots (if appropriate)
Types of changes
Changes visible to users:
fix
- non-breaking change which fixes an issue)feat
- non-breaking change which adds functionality)feat!!
orfix!!
- fix or feature that would cause existing functionality to not work as expected)docs
- improvements to any documentation content for users)vault
- improvements to the Tasks-Demo sample vault)contrib
- any improvements to documentation content for contributors - see Contributing to Tasks)Internal changes:
refactor
- non-breaking change which only improves the design or structure of existing code, and making no changes to its external behaviour)test
- additions and improvements to unit tests and the smoke tests)chore
- examples include GitHub Actions, issue templates)Checklist
yarn run lint
.Terms