Praxxian / lava-flow

A Foundry VTT module that allows you to import your notes from Obsidian MD into Foundry journal entries.
MIT License
68 stars 11 forks source link

[Request]: Ignore YAML metadata on import #25

Closed sirgawain111 closed 1 year ago

sirgawain111 commented 1 year ago

On import, the YAML metadata entries in the "header section" such as aliases, tags, etc. are (partly) imported as \

paragraphs. Would it be possible to completely ignore those entries on import?

Obsidian file: grafik

Foundry journal entry: grafik

Praxxian commented 1 year ago

Oh that's interesting that it is imported as h2. Must be something with showdown interpreting text before "---".

Yeah I will write something to exclude metadata.

joetheory commented 1 year ago

This plugin is an absolute game-changer for me! Thank you so much! I am having this same issue- Tags are super useful in Obsidian but don't really help at all in Foundry. Aliases could be useful but I don't know how you could implement them other than duplicate entries. I think the best thing to do for now would be to just check for the --- --- and strip or ignore it completely.

Praxxian commented 1 year ago

Something interesting is that showdown, the markdown converter that Foundry implemented, does have an option to ignore metadata, but it is off by default. Might merely be a matter of seeing if I can enable that. That would be ideal vs actually changing the content of the note as it is imported.

Praxxian commented 1 year ago

This issue along with a few others has been fixed in release 2.2.0. Please upgrade your module and let me know if you experience any more unexpected behavior. Thanks!