quasar-ui-qmarkdown icon indicating copy to clipboard operation
quasar-ui-qmarkdown copied to clipboard

How to get rid of bullet points?

Open MarisKay opened this issue 2 years ago • 8 comments

Hello, i was not able to find a way how to disallow all kinds of bullet points etc. I am looking for a way to get pure paragraphs with linkify enabled. Nothing more. But it turns out there's lots of goodies that sneak out one or another way when user enters some kind of character combination or like in bullet example simple minuses with an offset and line of text. Even Demo does not show any way to remove bullet points. Pls advise! Thank you!

MarisKay avatar Jun 16 '22 12:06 MarisKay

I am not entirely sure what you mean. If you start a line with a dash, it will be turned into a bullet point. That is basic markdown from the spec. Am I misunderstanding what it is that you want to accomplish?

hawkeye64 avatar Jun 19 '22 15:06 hawkeye64

Hey there, thanks for taking time to answer. What I mean is that i would love to have more control over which elements of markdown to allow and which dont. For example right now in my case i would be super glad to use only linkify, paragraphs and nothing else. In other project the set of allowed elements could be different. Depending on what project needs. Right now there is no way i can have ANY control over this :/

MarisKay avatar Jun 20 '22 11:06 MarisKay

Hey there, any progress towards this customization? Thanks

MarisKay avatar Sep 25 '22 07:09 MarisKay

Hi,

did u try the properties?

image

When something is missing could add it.

BR, nucle

nucle avatar Oct 15 '22 19:10 nucle

Hey Nucle, thanks for chiming in! Yes, i played with the properties. In my case i was not able to fully achieve pure text + linkifying detected urls. Somehow always something sneaks in when user adds content to my site that ruins the clean look.

How would you set the properties to allow only :

  1. Pure unformated text with linebreaks.
  2. All URLs automatically converted to clickable links.
  3. nothing else, no H tags, no text sizes, bolds, styles etc.. nothing.

Also, about links - would be great to have an option to display only domain name instead of having the whole long link presented to the user with all the url parameters like ?something=0293r034&blabla=510923 etc. The end user doesn't have to know all the parameters etc., that's a tech stuff, not usable when you read a post in my case. That makes it unreadable and is not helping in any way. At the same time - it is better than simply placing a word LINK.. since end user has to know at least to what site the link is going.

Please advise, Thank you!

MarisKay avatar Oct 18 '22 08:10 MarisKay

Hi, at the end of the day i can take a look.

BR

nucle avatar Oct 19 '22 08:10 nucle

@MarisKay

Do u mean when u edit the the markdown or when u see the parsed content?

Parsed content

[MyHomepage](https://github.com/quasarframework/quasar?something=0293r034&blabla=510923)

Will be displayed as: image

Plain content

  • You could use slugs instead of such urls like quasar/something-blabla
  • Use another plugin like https://github.com/martinheidegger/markdown-it-replace-link. Create placeholder and replace it on the fly
  • Code your own plugin

BR, nucle

nucle avatar Oct 22 '22 08:10 nucle

@nucle

yes, i know there's myhomepage syntax, but problem here is that my average regular user is a non tech person 60+ so expecting them to start using urls syntax like myhomepage would be way too optimistic scenario. At best they can copy paste full url.

And then there are those 5% of users who manage to sneak some html formating in, not sure how and what they write but at the end when i am outputting the content - in these cases formating jumps out of the whole context.

That's why i wondered whether it would be possible to add the customization so it would only allow linkifying and simple text with linebreaks, nothing more. As i understand, i can't achieve this config by twekaking current markdown's settings?

Coding my own solution and stuff like that is way too early for me so not even considering that as an option. I am in my first project right now with quasar js, so definitely not a pro here. Before i was doing purely php mysql.

Thanks

MarisKay avatar Oct 24 '22 11:10 MarisKay