diff --git a/YakisGuide/2021-09-05N1 - LTR Using admonition guide.md b/YakisGuide/2021-09-05N1 - LTR Using admonition guide.md new file mode 100644 index 0000000..ad111e9 --- /dev/null +++ b/YakisGuide/2021-09-05N1 - LTR Using admonition guide.md @@ -0,0 +1,83 @@ + + +# Multi language-directions in the same note + +## Abstract +Almost every obsidian user who writes in RTL language(like Hebrew and Arabic) aware of this problem: you want to write the note in your Right To Left language using the outstanding plug-in called "RTL Support". Yet, when you want to change the page direction, it affected the entire note, even you've some parts in the document that you want them to display in LTR direction(like code, some English quote etc. ). +The "RTL Support" plug-in changes the direction in the `` section, while this workaround will takes care of the option of changing the direction in the `
` level. +**Before**: +> ![](static/Pasted%20image%2020210905134340.png) + +**After**: +> ![](static/Pasted%20image%2020210905134104.png) + +## Step 1: Install Admonition plug-in +> Note: this guide assume the plug-in [RTL Support](https://github.com/esm7/obsidian-rtl) already installed on your Obsidian vault. + +**Go to Settings > Community Plugins > Browse** +![](static/Pasted%20image%2020210905132650.png) + +**Type in "Admonition" in the search box then click "Install"** +![](static/Pasted%20image%2020210905132827.png) +**When the installation will be completed, go to and turn the "Admonition" plugin on** +![](static/Pasted%20image%2020210905133407.png) +> Alternatively, you can install this plugin using the guide in the [Admonition's](https://github.com/valentine195/obsidian-admonition) repository +## Step 2: Adding new Admonition +**Go to Settings > Plugin Options: Admonition** + +![](static/Pasted%20image%2020210905153418.png) + +**Then click on "Add New"** + +**In the next window insert the details of the new admonition:** +* Admonition Type: the name of this admonition (later you'll use this name). +* Admonition Icon: you can chose some icon from the icons list that will be displayed on the header line of the admonition box. +* Color: the color of the frame and the title's background + +![](static/Pasted%20image%2020210905150917.png) +**Then click the "✔" symbol.** + +## Step 3: Customize the new Admonition's CSS +**Open the directory of your Obsidian's vault.** +**Open the file** (using some text editor): +/.obsidian/plugins/obsidian-admonition/styles.css +add the code: +```css +.admonition-{ + direction:ltr; +} +``` +**In my case it'll be:** + +![](static/Pasted%20image%2020210905151924.png) +**Then save and restart your Obsidian** + +## Step 4: Use the customized Admonition +**In your none Insert a Code Block with the format:** +```` +```ad- +title: + +your content.. +``` +```` + +**In my case :** +````` +````ad-code +title: Example for using RESTful API to push .md file to OP's GIT + +[[TFS Basic Auth]] +Before any push, the oldObjectId should be taken: +```bash +curl -D- \ +-u yakiki@openu.ac.il: \ +-X GET \ +-H "Content-Type: application/json" \ +"/_apis/git/repositories/PBackup/refs?api-version=4.1" + +``` +````` + + + diff --git a/YakisGuide/static/Pasted image 20210905132650.png b/YakisGuide/static/Pasted image 20210905132650.png new file mode 100644 index 0000000..3d76ed5 Binary files /dev/null and b/YakisGuide/static/Pasted image 20210905132650.png differ diff --git a/YakisGuide/static/Pasted image 20210905132827.png b/YakisGuide/static/Pasted image 20210905132827.png new file mode 100644 index 0000000..39106a6 Binary files /dev/null and b/YakisGuide/static/Pasted image 20210905132827.png differ diff --git a/YakisGuide/static/Pasted image 20210905133407.png b/YakisGuide/static/Pasted image 20210905133407.png new file mode 100644 index 0000000..9dced1e Binary files /dev/null and b/YakisGuide/static/Pasted image 20210905133407.png differ diff --git a/YakisGuide/static/Pasted image 20210905134104.png b/YakisGuide/static/Pasted image 20210905134104.png new file mode 100644 index 0000000..50017e3 Binary files /dev/null and b/YakisGuide/static/Pasted image 20210905134104.png differ diff --git a/YakisGuide/static/Pasted image 20210905134340.png b/YakisGuide/static/Pasted image 20210905134340.png new file mode 100644 index 0000000..72d3127 Binary files /dev/null and b/YakisGuide/static/Pasted image 20210905134340.png differ diff --git a/YakisGuide/static/Pasted image 20210905150917.png b/YakisGuide/static/Pasted image 20210905150917.png new file mode 100644 index 0000000..822c47f Binary files /dev/null and b/YakisGuide/static/Pasted image 20210905150917.png differ diff --git a/YakisGuide/static/Pasted image 20210905151924.png b/YakisGuide/static/Pasted image 20210905151924.png new file mode 100644 index 0000000..1869f98 Binary files /dev/null and b/YakisGuide/static/Pasted image 20210905151924.png differ diff --git a/YakisGuide/static/Pasted image 20210905152319.png b/YakisGuide/static/Pasted image 20210905152319.png new file mode 100644 index 0000000..b9848ba Binary files /dev/null and b/YakisGuide/static/Pasted image 20210905152319.png differ diff --git a/YakisGuide/static/Pasted image 20210905153418.png b/YakisGuide/static/Pasted image 20210905153418.png new file mode 100644 index 0000000..1031f07 Binary files /dev/null and b/YakisGuide/static/Pasted image 20210905153418.png differ