this post was submitted on 07 Jun 2023
9 points (100.0% liked)

Programming.dev Meta

2442 readers
1 users here now

Welcome to the Programming.Dev meta community!

This is a community for discussing things about programming.dev itself. Things like announcements, site help posts, site questions, etc. are all welcome here.

Links

Credits

founded 1 year ago
MODERATORS
 

Can posts have a body and a URL?

Is markdown supported?

Console.WriteLine("Hello, World")

Do code blocks work?

What about with syntax highlighting?

console.log("Hello, World");

Can I make a code block with indentations?

var a = "Hello" var b = "World" console.log(${a}, ${b});

Let's see what quotations look like,

This is a quote.

And this one will be multiline.

Line one. Line two.

There should be a space above.

I think that's enough testing for now.

top 6 comments
sorted by: hot top controversial new old
[–] michaelcharles 3 points 1 year ago (1 children)

So, markdown supported.

Can't make a codeblock by indenting.

Specifying languages for code blocks doesn't cause any problems, but there's no indication of the specified language in the output. No syntax highlighting either.

Quotes and multiline quotes work.

Hmmm... images?

The above should be an image if typical markdown image syntax works.

[–] snowe 2 points 1 year ago

I wonder how hard it would be to add syntax highlighting. It's all open source Rust. I can check later to see if there's anything already set up and it's just not being rendered.

[–] tonkaTruck 1 points 1 year ago* (last edited 1 year ago)

Examples for markdown from lemmy's documenation

Example of multiline codeblock:
func main() {
    fmt.Println("four spaces")
	fmt.Println("An actual tab indent") // the correct option
}

I did put ```golang at the beginning of the code block, but at least on my browser, doesn't seem to highlight it like a markdown file. Though, I don't see golang in the multiline codeblock either. So the input does get eaten somewhere.

[–] [email protected] 1 points 1 year ago

Do comments work?

[–] jnovinger 1 points 1 year ago (1 children)

I'm curious about Markdown in post titles. Anybody know about that?

[–] jnovinger 1 points 1 year ago

Looks like at least inline code styling is working in titles: https://programming.dev/post/184949. I also confirmed elsewhere that emojis work in titles.

I went looking at the Lemmy docs, but didn't find anything specific about titles. Just this:

The main type of content in Lemmy is text which can be formatted with Markdown. Refer to the table below for supported formatting rules.