Skip to content

Commit

Permalink
fix: allow accented chars in Fountain character tokens (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuangcaleb committed Jan 25, 2024
1 parent daba3fb commit b7b84d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ I *smell* a rat...
- 🪓 **Opt-out** into regular Obsidian!Markdown syntax highlighting with Fountain's [Synopsis](https://fountain.io/syntax/#sections-synopses) token!
- 🤝 **Combine with your favorite Obsidian community plugins** like [Longform](https://github.com/kevboh/longform)!
- 🔧 **Fine-tune** the styling using CSS variables with the format `--fountain--*`... see [base.css](src/styles/base.css) for the exposed CSS variables!
- 🧑‍💻 **Hack your own experience** if you know programming — no more "it would've been perfect, if only they had _x_ feature"!
- 🧑‍💻 **Hack in missing features** — with Obsidian's open-contribution development, there'll be no more "it would've been perfect, if only they had _x_ feature"!

> 📖 See [Design Guidelines](docs/basic/design-guidelines.md) to understand our implementation!
Expand Down
3 changes: 2 additions & 1 deletion src/editor/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export const LINE_TOKENS = [
},
{
id: n.character,
regex: /^[^\S\r\n]*(?=.*[A-Z])[A-Z0-9 \t'.-]+\s?(\(.*\))?$|@.*$/,
regex:
/^[^\S\r\n]*(?=.*[A-Z\u00C0-\u024F])[A-Z0-9\u00C0-\u024F \t'.-]+\s?(\(.*\))?$|@.*$/,
},
{
id: n.dialogue,
Expand Down

0 comments on commit b7b84d2

Please sign in to comment.