Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codeblocks are not rendering as expected #165

Open
FrenzyExists opened this issue Nov 6, 2022 · 3 comments
Open

Codeblocks are not rendering as expected #165

FrenzyExists opened this issue Nov 6, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@FrenzyExists
Copy link

Describe the bug
Codeblocks are not working as the documentation says

Samples to Reproduce
Literally copy/paste the codeblock from the docs and instead of getting the expected codeblock, you get this:
image

Expected behavior
This of course
image

Some extra details
I don't know if this will help, but I'm using the app-image on archlinux. I even tried disabling the default slides extension that obsidian already comes with and it doesn't change anything. Interestingly, the default slides extension DOES show the code block as expected. Hope this helps

@FrenzyExists FrenzyExists added the bug Something isn't working label Nov 6, 2022
@MSzturc
Copy link
Owner

MSzturc commented Nov 6, 2022

Ohh yeah, i was able to reproduce it. Thx for the bug report

@tnicolaysen
Copy link

I have the same issue. In my example it looks like it has something to do with curly braces. Most likely an escaping issue.

Here's a sample from where I have an issue:

syntax = "proto3";

package customer;

service Customers {
    rpc GetCustomerById (GetCustomerByIdRequest) returns (CustomerDetails);

	rpc GetCustomerByFoo (GetCustomerByFooRequest) returns (CustomerDetails);
}

message GetCustomerByIdRequest {
    string id = 1;
}

message GetCustomerByFooRequest {
    int32 id = 1;
}

message CustomerDetails {
    string id = 1;
    string name = 2;
    Address address = 3;
}

message Address {
    string streetName
    string zipCode
}

@samjetski
Copy link

It seems a bit flaky. As a workaround, I found that sometimes changing the indentation can help.

For the example from the docs, it's technically invalid Markdown until you remove the indentation on the last line (before the ```).
image

That said, I ran into an issue earlier (which lead me to this thread) where I thought I found a valid block that still wouldn't render correctly. But now I can't seem to reproduce it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants