What you’re seeing is the, sadly, expected behavior when indenting normal text: red color stands for code. I have the same issue with my Roam imports, of which half are showing code snippets where none were entered. It would be really helpful to switch code insertion off, if “tab indenting” is switched on in the editor settings. That way the programmers get their part and the writers and outliners as well.
Indeed. Roam’s indentation isn’t copacetic with Markdown’s indentation for code syntax, and Markdown is rather picky about arbitrary indentation.
You may want to mass find-and-replace your tabs with more appropriate structures. I believe I did something similar when I imported some Roam notes a long time ago. Use an app with mass find and replace (e.g., VSCode) that recognizes Regex, and e.g., replace all sets of three tabs (\t\t\t, I think; try testing on regexr.com first) with e.g., \t\t- , then \t\t with \t- , then \t with - , etc.
YMMV—be sure to experiment with a subset of notes and make backups before you do this kind of massive editing.
As for Roam importing, feel free to create a feature request to add a “Convert tabs” to the importer plugin.
Oh, okay. So it’s just a misunderstanding from my side. My bad.
I guess it will take some time to get used to this program. Seems really good but some things are not as intuitive as they are in Roam.
Thank you for replies and suggestions!
No worries. To be clear, Roam uses markdown-like syntax but a lot of things are not quite standard. Markdown’s a well-accepted way of writing these days but if you’re coming from Roam, you’re likely to be confused by the way it’s conventionally done. The syntaxes used in Obsidian are pretty universal, though, and work in e.g., DEVONthink, iA Writer, Typora, 1Writer, GitJournal, etc. etc.
Hi, my first comment here, so trying to be as humble as I can (started using Obsidian yesterday and I feel like a kid exploring it). @ryanjamurphy Could you explain why Markdown behaves this way in Obsidian (as a convention)? I have used markdown for about 5 years, with multiple markdown-editors, and have never experiences this before. Not that I see a reason to (arbitrarily) indent the first line, so its not a problem. Im just really curious why I haven’t seen this happen before. Im not able to recreate it in any of my other editors.
Sorry, I was unclear. Im only referring to the original comment; that “tabbing” the first line of text turns it into an indented code-block. I was wondering why this is a-feature-and-not-a-bug; why Markdown is made to do this.