How to prevent ‘Excalidraw’ from generating a YAML tag in each file?

Yo, I just solved my own problem lol

Since nobody was able to help, I went, thought, and tried to figure it out by myself. And I found that, in order not to have that excalidraw tag automated in each and every drawing you make, you have to create the excalidraw template file and edit it.

Let me explain:

  • All excalidraw drawings you create use a specific template. This one, to be more specific:
---

excalidraw-plugin: parsed
tags: [excalidraw]

---
==⚠  Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠==


%%
# Drawing
```json
{"type":"excalidraw","version":2,"source":"https://github.com/zsviczian/obsidian-excalidraw-plugin/releases/tag/1.9.3","elements":[],"appState":{"gridSize":null,"viewBackgroundColor":"#ffffff"}}
``
%%
  • What you have to do is edit that template (remove the “tags: [excalidraw]”)
  • To do that you create a new file (not excalidraw drawing) in your vault, and you name it “Template.excalidraw”
    - You can really name it whatever, but I think it’s better if you do it like this
  • Then, you copy and paste the template I shared with you earlier on that new file you just created.
  • Make the changes you want on it (removing the “tags: [excalidraw]”)
  • Now, locate Template.excalidraw (if you named it like that) to where you want it to be in your vault (e.g. under X folder)
  • Then, go to the Excalidraw Plug-in Settings, and describe the Template.excalidraw (again, if you named the file like that) location in your vault (e.g. Extras/Templates/Template.excalidraw) on where it says, “Excalidraw template file”
  • And there you have it :slight_smile: Create a new Excalidraw drawing, and you’ll see the changes occured

Also, an advice @jeetsukumaran: Remember, if you don’t know how to do something, you go figure it out. Don’t give up hope when there’s no person to help, ok

5 Likes