spaceshelter / orbitar

Experimental collective social/blogging platform with self-regulation.
MIT License
61 stars 24 forks source link

Pre button in editor #306

Open LazyKarlson opened 1 year ago

LazyKarlson commented 1 year ago

Button for

 HTML tag added to editor.
My VS Code add some spaces to code for readability thats why many changes in commit.

LazyKarlson commented 1 year ago

Please get rid of the unrelated formatting changes.

@Aivean Done!

Aivean commented 1 year ago

@LazyKarlson, did you test it?

I think the parser support should be more involved, as right now it will still perform all replacements inside the <pre> tag (like videos and mentions).

Additionally, regex is not the right tool to do html escaping here. Also, this logic shouldn't happen on the client. The user should see clear readable text inside the <pre> tag when writing/editing.

maximt commented 1 year ago

I think [code] tag will be more expected and more well-known by users.