Skip to content

Commit 64ab65e

Browse files
committed
fix: preferObsidianBlockquote should not break all Transitions
1 parent 1331f32 commit 64ab65e

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# obsidian-fountain-editor
22

3+
## 1.4.1
4+
5+
### Patch Changes
6+
7+
- fix: preferObsidianBlockquote should not break all Transitions
8+
39
## 1.4.0
410

511
### Consistent document layout widths

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "fountain-editor",
33
"name": "Fountain Editor",
4-
"version": "1.4.0",
4+
"version": "1.4.1",
55
"minAppVersion": "0.15.0",
66
"description": "Fountain (screenplay) syntax highlighting in the editor",
77
"author": "Chuang Caleb",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-fountain-editor",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "Obsidian plugin for Fountain (screenplay) syntax highlighting in the editor",
55
"main": "main.js",
66
"type": "module",

src/editor/decorations.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,12 @@ function getLineFormat(
105105
for (const {id: tId, regex: tRegex} of LINE_TOKENS) {
106106
if (tRegex.test(line)) {
107107
const token = handleToken(tId, state, context);
108-
if (token === n.transition && settings.preferObsidianBlockquote) {
108+
// setting to early exit on transition-blockquotes
109+
if (
110+
settings.preferObsidianBlockquote &&
111+
token === n.transition &&
112+
line.startsWith(">")
113+
) {
109114
return null;
110115
}
111116

versions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515
"1.3.1": "0.15.0",
1616
"1.3.2": "0.15.0",
1717
"1.3.3": "0.15.0",
18-
"1.4.0": "0.15.0"
18+
"1.4.0": "0.15.0",
19+
"1.4.1": "0.15.0"
1920
}

0 commit comments

Comments
 (0)