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

Rendering of Code blocks is not correct #21

Open
Paracelsus-Rose opened this issue Jan 20, 2023 · 1 comment
Open

Rendering of Code blocks is not correct #21

Paracelsus-Rose opened this issue Jan 20, 2023 · 1 comment

Comments

@Paracelsus-Rose
Copy link

block:||ts
//This is a code block that should be formatted right
||

Rendered in Obsidian D2
image
play.d2
image
d2 cli w/ tala
image

@AdroDG
Copy link

AdroDG commented Mar 5, 2023

+1
successfull from command line:
image
but wrongly rendered in obsidian
image

my_code: |||ts
  declare function getSmallPet(): Fish | Bird;
  const works = (a > 1)||(b < 2)
||| {
	near: top-right
}

A: My client {
	icon: https://as2.ftcdn.net/v2/jpg/02/29/75/83/1000_F_229758328_7x8jwCwjtBMmC6rgFzLFhZoEpLobB6L8.jpg
	action
	style.fill: "#AAAAAA"
}
B: {
	db1: Main\nDB {
		shape: cylinder
	}
	db2: Backup\nDB {
    style: {  
	      stroke: blue  
	      font-color: red  
	      stroke-dash: 3  
	      fill: white  
	    }		
		shape: cylinder
	}
	db1 -> db2: every hour
}

other: |||ts  
  declare function getSmallPet(): Fish | Bird;
  const works = (a > 1)||(b < 2) 
|||

Am I missing a thing ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants