jasonwilliams / anki

Anki VSCode Plugin
MIT License
275 stars 31 forks source link

Send to Own Deck grabs everything under title and not just the title #24

Closed a-guy-on-the-internet closed 3 years ago

a-guy-on-the-internet commented 3 years ago

So when I create a deck using the "Send To Own Deck" command the deck name basically ends up being everything under the initial "#" and I was wondering if this is expected behavior and if there is any way around it. Below are some sceenshots of what I am referring to. image image

I would assume the deck's name would just be whatever the title header has up till it reaches a new line not till it finds a new card.

If this requires some code changes that you don't think you can quickly bang out you can direct me to some files and I probably can get a PR in relatively soon as I assume this isn't a crazy bug

jasonwilliams commented 3 years ago

@MicahGV https://github.com/jasonwilliams/anki/blob/master/src/markdown/Serializer.ts#L75 here

jasonwilliams commented 3 years ago

This how now been fixed in https://github.com/jasonwilliams/anki/releases/tag/v1.0.2