flashcards-obsidian icon indicating copy to clipboard operation
flashcards-obsidian copied to clipboard

YAML Frontmatter too gets inserted in the front.

Open moiSentineL opened this issue 1 year ago • 1 comments

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

  • Steps to reproduce the behavior:
  1. Create YAML Frontmatter
  2. Write a heading with #card just after the --- with no empty line
  3. Generate flashcards.

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.

moiSentineL avatar Apr 02 '23 16:04 moiSentineL

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

github-actions[bot] avatar Apr 02 '23 16:04 github-actions[bot]