chuangcaleb / obsidian-fountain-editor

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

🐛 Courier Prime font used for regular markdown text #38

Open asterox opened 2 weeks ago

asterox commented 2 weeks ago

Describe the bug

In the sample image on the GitHub page, the "regular" markdown text (not fountain syntax) is shown in default font while the fountain text is in courier.

In my file, all body text is rendered in courier.

What's the expected result?

Expect body text that is not fountain syntax to be rendered in default font.

Steps to reproduce the behavior

no special steps needed.

Fountain Editor - Plugin Version

No response

Obsidian Version

No response

What environment are you seeing the problem on?

Participation

chuangcaleb commented 2 weeks ago

Hello, can you attach a screenshot of this behaviour? As well as paste your source (plain)text.

You may be looking for Fountain's Synopsis token, starting a line with =, which causes the rest of the line to not be processed for Fountain styling. This helps differentiate Synopsis/markdown from Fountain's Action syntax token (if you can call it that, basically the default token if no syntax marker is provided).

asterox commented 2 weeks ago

Heading 2

Here's a heading in Courier.

EXT. THE FARM This all seems correct.

JILL Yep. Looks right.

Screenshot 2024-04-29 at 9 29 38 AM
asterox commented 2 weeks ago

I see. So without the synopsis token it will simply treat text as action. But Headers are exempt from formatting then?

Also thank you for your work and for the reply!

chuangcaleb commented 2 weeks ago

Based Nord theme user. lol

Yea without the synopsis token, Fountain parsers just assume its action. So I mimicked that. And Headings do not have any implicit styles on them, I don't touch them! :D

asterox commented 2 weeks ago

Understood. Ty!

On Apr 30, 2024, at 10:37 AM, Chuang Caleb @.***> wrote:

Based Nord theme user. lol

Yea without the synopsis token, Fountain parsers just assume its action. So I mimicked that. And Headings do not have any implicit styles on them, I don't touch them! :D

— Reply to this email directly, view it on GitHub https://github.com/chuangcaleb/obsidian-fountain-editor/issues/38#issuecomment-2085524128, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADGGBSM2WZBU65XAPL4VITY76UCVAVCNFSM6AAAAABG6HP3FSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBVGUZDIMJSHA. You are receiving this because you authored the thread.