Adds cssclasses: hide-dj-passage-properties to passage notes to hide the noise

This commit is contained in:
Scott Tomaszewski 2025-10-20 14:52:37 -04:00
parent 127d5feb13
commit e079e4d67f
4 changed files with 13 additions and 1 deletions

View file

@ -1,5 +1,9 @@
# Changelog
## 0.8.1
- Adds `cssclasses: hide-dj-passage-properties` to passage notes to hide the noise
## 0.8.0
- Corrects an issue with hover previews not vanishing properly

View file

@ -1,7 +1,7 @@
{
"id": "disciples-journal",
"name": "Disciples Journal",
"version": "0.8.0",
"version": "0.8.1",
"minAppVersion": "0.15.0",
"description": "Embed Bible references and passages in your notes and read the Bible in Obsidian.",
"author": "Scott Tomaszewski (Xentis)",

View file

@ -129,6 +129,7 @@ export class ESVApiService {
console.log(filePath);
let content = "---\n"
content += stringifyYaml(data);
content += "cssclasses: hide-dj-passage-properties"
content += "\n---\n\n";
content += "~~~bible\n"
content += data.canonical;

View file

@ -11,6 +11,13 @@ body {
display: none !important; /* Use !important to ensure override */
}
.hide-dj-passage-properties {
/* hide in reading mode */
--metadata-display-reading: none;
/* hide in editing/live preview mode too */
--metadata-display-editing: none;
}
button.clear-input-button {
position: absolute;
top: 50%;