chuangcaleb / obsidian-fountain-editor

Obsidian plugin for formatting Fountain screenplay syntax in the editor
https://obsidian.md/plugins?id=fountain-editor
MIT License
35 stars 2 forks source link

Fountain notes incorrectly rendered as links #40

Open bgrundmann opened 2 months ago

bgrundmann commented 2 months ago

Describe the bug

Within actions and Dialogue in fountain one can write inline notes using the same syntax that obsidian uses for links (see https://fountain.io/syntax/#notes). I use this a lot in my fountain files. I just tried renaming one of them to .md adding the property and opening it in obsidian. This mostly works great but all notes become links, which is undesirable imho.

What's the expected result?

I would expect notes to be rendered in a different font than normal but more indicative of a comment/note than of a link and of course to not create a note when clicked (indeed it should not be a click target).

Ideally the same syntax within a synopsis should indeed produce a link as usual.

Steps to reproduce the behavior

CleanShot 2024-05-18 at 17 54 58@2x

Fountain Editor - Plugin Version

1.1.4

Obsidian Version

1.5.12

What environment are you seeing the problem on?

Participation

chuangcaleb commented 2 months ago

Hi! Thanks for using this plugin!

Yeah this is an expected behavior. It's one of the compromises I have evaluated necessary in the design to ensure interoperability between Fountain and Markdown.

Markdown wikilink is a crucial token especially in Obsidian, in fact, linking is the reason why most people use Obsidian to write their Fountain screenplays.

If acceptable, you can use Fountain's synopsis token (starting a line with '=') in place of Fountain's '[[]]' notes. It's not ideal, but it's not caused too much problems so far!

Let me know if this is alright?