Obsidian plugin to edit, write and render Fountain Writing Syntax for screenplays and scripts (implements fountain-js project to parse fountain script).
60
stars
10
forks
source link
[Feature request] Support for lyrics starting with "~" #15
I like this plugin better than the alternatives, because it allows me to insert Fountain code blocks anywhere. Thanks!
I would like to be able to format lyrics. Fountain syntax says that putting "~" before lines makes them lyrics, and then it's up to the client to format them. For example:
RICK
~We're no strangers to love
~You know the rules, and so do I
I figured I could use a CSS snippet to do this. I looked at the CSS classes for the preview, but there is no way to target the lines starting with "~". CSS cannot select based on paragraph contents, only on attributes.
<div class="dialogue">
<h4>RICK</h4>
<p>~We're no strangers to love<br>
~You know the rules, and so do I</p>
</div>
Could you include a class for lyrics, so the snippet can target them? Like this perhaps:
<div class="dialogue">
<h4>RICK</h4>
<p class="lyrics">~We're no strangers to love<br>
~You know the rules, and so do I</p>
</div>
Alternatively, force the formatting on lyrics to be italic?
Thanks for any help
I like this plugin better than the alternatives, because it allows me to insert Fountain code blocks anywhere. Thanks!
I would like to be able to format lyrics. Fountain syntax says that putting "~" before lines makes them lyrics, and then it's up to the client to format them. For example:
I figured I could use a CSS snippet to do this. I looked at the CSS classes for the preview, but there is no way to target the lines starting with "~". CSS cannot select based on paragraph contents, only on attributes.
Could you include a class for lyrics, so the snippet can target them? Like this perhaps:
Alternatively, force the formatting on lyrics to be italic? Thanks for any help