DumbPad icon indicating copy to clipboard operation
DumbPad copied to clipboard

Markdown style formatting

Open Justinzobel opened this issue 1 year ago • 9 comments

It would be nice if notes were in markdown. If that's a load more effort, then just CSS styling would be good.

For example, anything starting with # is a certain color.

Anything starting with - or * is a certain color. This way we could have basic things like headers and bullet point lists.

Justinzobel avatar Feb 16 '25 04:02 Justinzobel

@Justinzobel @abiteman i like this idea added my own implementation of it in https://github.com/DumbWareio/DumbPad/pull/34

  • preview gif in the pr

gitmotion avatar Feb 27 '25 11:02 gitmotion

Whoa that's next level. I was just hoping for colors like this 😁

Image

Justinzobel avatar Feb 27 '25 11:02 Justinzobel

maybe i took it a step further haha 😅 but thought seeing in markdown preview would achieve something more helpful

gitmotion avatar Feb 27 '25 11:02 gitmotion

Oh I love the markdown preview as well, I also like being able to see my edits where titles and things start/finish.

Justinzobel avatar Feb 28 '25 00:02 Justinzobel

replying to your last comment in https://github.com/DumbWareio/DumbPad/pull/34 here instead to keep the pr comments less cluttered:

i think makes sense but would require additional parsing to get that info. i found something better that could auto detect the given language instead and i have it loading okay but it presents a different issue since the current element is a textarea it wont be able to render the html.

image

so i had to use a div with a contenteditable attribute but that presents other issues with the current saving and cursor logic and breaks things 🫠 might have to take another look when i have more time but it seems like it's possible but may require a bit of refactoring of the current app

but i like the idea, in accordance with the auto detect of languages i found

gitmotion avatar Feb 28 '25 05:02 gitmotion

so i had to use a div with a contenteditable attribute but that presents other issues with the current saving and cursor logic and breaks things 🫠 might have to take another look when i have more time but it seems like it's possible but may require a bit of refactoring of the current app

I was trying to implement WYSIWYG but ended up with this issue and haven't revisited it as of yet.

abiteman avatar Feb 28 '25 05:02 abiteman

hahaha nice, i had the same thought about adding wysiwyg. i feel like at some point it might be better to just use a text editor package of some sort but wondering if that just defeats the whole purpose of this app 😅

gitmotion avatar Feb 28 '25 05:02 gitmotion

I am quite happy for you to say no if this app is to stay as is and be a super minimal text pad.

Justinzobel avatar Feb 28 '25 06:02 Justinzobel

I'm going to consider this closed with #34 for now. We may expand on the MD implementation at some point, but for now I'm happy with it.

abiteman avatar Mar 01 '25 01:03 abiteman