Skip to content

Commit

Permalink
feat: support RTL language #203
Browse files Browse the repository at this point in the history
  • Loading branch information
guopenghui committed Jan 7, 2025
1 parent 74ba693 commit 7311c6e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 49 deletions.
47 changes: 1 addition & 46 deletions main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-quiet-outline",
"name": "Quiet Outline",
"version": "0.3.38",
"version": "0.3.39",
"minAppVersion": "0.15.6",
"description": "Make outline quiet and more powerful, including no-auto-expand, rendering heading as markdown, and search support.",
"author": "the_tree",
Expand Down
2 changes: 0 additions & 2 deletions src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ export const remove_ref: Extension = {
const match = rule.exec(src);

if (match) {
console.log(match)
return {
type: 'ref',
raw: match[0],
Expand All @@ -82,7 +81,6 @@ export const remove_ref: Extension = {
}
},
renderer(token) {
console.log({token})
return "";
}
};
Expand Down
5 changes: 5 additions & 0 deletions src/stalin.css
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@
mix-blend-mode: normal;
}

/* RTL language support */
.quiet-outline .n-tree .n-tree-node-content :is(p, h1, h2, h3, h4, h5) {
unicode-bidi: plaintext;
}


/* experimental */

3 changes: 3 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@
.canvas-node .markdown-embed-content .is-flashing {
mix-blend-mode: normal;
}
.quiet-outline .n-tree .n-tree-node-content :is(p, h1, h2, h3, h4, h5) {
unicode-bidi: plaintext;
}

/* main.css */
.quiet-outline .n-tree .n-tree-node-indent {
Expand Down

0 comments on commit 7311c6e

Please sign in to comment.