reuseman / flashcards-obsidian

🎴 An Anki plugin for Obsidian.md
MIT License
897 stars 87 forks source link

YAML Frontmatter too gets inserted in the front. #185

Open moiSentineL opened 1 year ago

moiSentineL commented 1 year ago

NOTE: Do you have the last version of the plugin? If not that's probably the problem

Describe the bug When a heading is just after the YAML frontmatter, the YAML gets inserted in the front of the card

To Reproduce

Expected behavior Only the heading with #card is supposed to be in the front of the card

The Note

---
tags: study, science, chem
academic_year: 2023-24
date: March 24, 2023
cards-deck: Science::Chemistry::Chemical Reactions and Equations
---
# What are the factors of determining chemical change? #card
## Factors
- Change of State
- Change of Colour
- Evolution of a Gas
- Change in Temperature.

Additional context If we add an empty line just after the YAML, the problem gets resolved and only the heading is added.

github-actions[bot] commented 1 year ago

Thank you for taking the time to report the issue and help me to make the project better! 🙂