Can we have the old Markdown for quoting paragraphs please?


(AstonJ) #1

In older version of Discourse we could put a > on the line above a paragraph for it to be quoted, now it requires one on each line to be quoted.

Alternatively, you can use the quote tags [ quote ] paragraph/s [ /quote ] (without the spaces) to quote several paragraphs, however, neither of these are ideal or as easy as a single > on the line above each paragraph.

Many users are now putting quoted text inside code backticks - which is annoying as you need to scroll horizontally to view the text.

Are there any other ways to quote text? Anyone else wish we still had the old way?


(Jay Pfaffman) #2

This works as you expect:

> Many users are now putting quoted text inside code backticks - which is annoying as you need to scroll horizontally to view the text.

renders as:

Many users are now putting quoted text inside code backticks - which is annoying as you need to scroll horizontally to view the text.

You’re saying that at one time

> one
two 
three

would render as

one two three

?

That’s surprising.

You might check out the site setting traditional markdown linebreaks. It might yield the behavior you seek (but I don’t know and didn’t try).


(Luke S) #3

I suspect that something has changed about the source of the text that your users are quoting. It sounds like the paragraphs are being pasted in with actual line breaks, instead of being a series of sentences separated by non-breaking spaces.


(Rafael dos Santos Silva) #4
> this
is
a
quote

becomes:

this
is
a
quote

So it works for me.


(AstonJ) #5

Hmmmm… let me try!

Here is an exact copy of a post which previously rendered as a single quote:


by Benjamin Tan Wei Hao

The Little Elixir & OTP Guidebook gets you started programming applications with Elixir and OTP. You begin with a quick overview of the Elixir language syntax, along with just enough functional programming to use it effectively. Then, you’ll dive straight into OTP and learn how it helps you build scalable, fault-tolerant and distributed applications through several fun examples.

###About the technology
Elixir is an elegant programming language that combines the expressiveness of Ruby with the concurrency and fault-tolerance of Erlang. It makes full use of Erlang?s BEAM VM and OTP library, so you get two decades? worth of maturity and reliability right out of the gate. Elixir?s support for functional programming makes it perfect for modern event-driven applications.

###About the book
The Little Elixir & OTP Guidebook gets you started writing applications with Elixir and OTP. You?ll begin with the immediately comfortable Elixir language syntax, along with just enough functional programming to use it effectively. Then, you?ll dive straight into several lighthearted examples that teach you to take advantage of the incredible functionality built into the OTP library.

###What’s inside

  • Covers Elixir 1.2 and 1.3
  • Introduction to functional concurrency with actors
  • Experience the awesome power of Erlang and OTP
  • About the reader
  • Written for readers comfortable with a standard programming language like Ruby, Java, or Python. FP experience is helpful but not required.

###About the author
Benjamin Tan Wei Hao is a software engineer at Pivotal Labs, Singapore. He is also an author, a speaker, and an early adopter of Elixir.


The input looks like this:

To get it working now we have to do:


by Benjamin Tan Wei Hao

The Little Elixir & OTP Guidebook gets you started programming applications with Elixir and OTP. You begin with a quick overview of the Elixir language syntax, along with just enough functional programming to use it effectively. Then, you’ll dive straight into OTP and learn how it helps you build scalable, fault-tolerant and distributed applications through several fun examples.


###About the technology
Elixir is an elegant programming language that combines the expressiveness of Ruby with the concurrency and fault-tolerance of Erlang. It makes full use of Erlang?s BEAM VM and OTP library, so you get two decades? worth of maturity and reliability right out of the gate. Elixir?s support for functional programming makes it perfect for modern event-driven applications.

###About the book
The Little Elixir & OTP Guidebook gets you started writing applications with Elixir and OTP. You?ll begin with the immediately comfortable Elixir language syntax, along with just enough functional programming to use it effectively. Then, you?ll dive straight into several lighthearted examples that teach you to take advantage of the incredible functionality built into the OTP library.

###What’s inside

  • Covers Elixir 1.2 and 1.3
  • Introduction to functional concurrency with actors
  • Experience the awesome power of Erlang and OTP
  • About the reader
  • Written for readers comfortable with a standard programming language like Ruby, Java, or Python. FP experience is helpful but not required.

###About the author
Benjamin Tan Wei Hao is a software engineer at Pivotal Labs, Singapore. He is also an author, a speaker, and an early adopter of Elixir.


Here is the input:

That is quite a few extra >'s. You can see the original thread (which hasn’t been updated yet, here).

I suppose something the new way fixes is that if you don’t want two paragraphs quoted as one ‘quote’ then there is a break between them (though in that case with the older method you could maybe just add to line breaks or write something in-between them).

I am not sure what is the best solution, but I do know that I frequently have to fix posts because the user is opting to use backticks. I think Jeff may have even fixed some of mine here too because it’s much easier.

Could we add something like the following?

‘’'quote

Paragraph

P2

P3

P4
‘’’

(backticks instead of ''')

That seems like the easiest route :slight_smile:


(Rafael dos Santos Silva) #6

We follow the https://commonmark.org/ spec now. Requesting a change should be sent upstream.


(Jay Pfaffman) #7

Looking at https://elixirforum.com/raw/5885 it appears that you have a newline before the start of each paragraph.

Actually, none of the paragraphs starts with a >.

You really want to put a space after all of those ####s to make them headers.


(Sam Saffron) #8

You already have bbcode quote :open_hands: just use that

[quote]

1


2


3

[/quote]

(AstonJ) #9

I will try that, but am concerned that they might not really care about forum use. From what I remember MD was created by Daring Fireball for his blog and is mostly used for blogging and CMS software? I will try tho.

That’s how it used to work :slight_smile: same with headers. Formatting of lots of posts broke after Discourse introduced the new standard.

I know Sam :stuck_out_tongue: the problem is people don’t.

I must admit, that despite having used(/admin’d) forums daily for over 15 years myself (where that was the only way to quote text) even I myself begrudgingly use the quote tags now - it’s so much easier to do something like the three backticks…


(Sam Saffron) #10

I am pretty adamant not to mess with the spec, not happy at all with the idea of turning fenced code blocks into optional quotes.

Historically our old markdown engine became hack central because of special cases, I do not want to enter this world


(AstonJ) #11

Quoting from within Discourse isn’t a problem at all - because it’s so easy - just highlight and click :smiley:

The problem we are facing is when users quote text from an external resource. Here is an example that I haven’t edited yet.

Some users have been made aware of how to quote properly - but they either forget or are finding it too much of a chore. Should we keep editing? Warn them if they persist? Or give them an alternative?

If I thought they were being unreasonable I’d opt for one of the former two, but as I mentioned even I find it a chore now after having got used to all the other easier ways of doing things in Discourse…


(Sam Saffron) #12

Sorry… now that I am on desktop and not on mobile I am SUPER confused about this request.

Why can’t these users highlight the desired text and then click this button?


(AstonJ) #13

As far as I’m aware - that only lets you quote one paragraph? So you’d have to copy one paragraph, click that, then paste - then go back to your other tab and repeat for each paragraph.


(Sam Saffron) #14

para 1

para 2

para 3

Works great for me :arrow_double_up:


(AstonJ) #15

Does not work for me Sam.

Copied multiple paragraphs to clipboard, came here, clicked on that icon, double clicked on the word Blockquote and pasted. Resulted in this:


Cyberpunk dystopias and one-armed ninjas are among the highlights from this year’s Gamescom games fair, which opened on Tuesday in Cologne.

The biggest show of its kind in Europe, Gamescom attracts thousands of visitors to see the latest games every year.

Next-generation graphics were teased by Nvidia, while a full Xbox One release for the popular shooter PlayerUnknown’s Battlegrounds (PUBG) was announced.

The latest game from the creator of Dark Souls was also revealed.


Should have resulted in:


(Sam Saffron) #16

Cyberpunk dystopias and one-armed ninjas are among the highlights from this year’s Gamescom games fair, which opened on Tuesday in Cologne.

The biggest show of its kind in Europe, Gamescom attracts thousands of visitors to see the latest games every year.

Next-generation graphics were teased by Nvidia, while a full Xbox One release for the popular shooter PlayerUnknown’s Battlegrounds (PUBG) was announced.

The latest game from the creator of Dark Souls was also revealed.

I am not following at all, you got to have all the text you want block quoted… selected…


(Jay Pfaffman) #17

Instead, you need to

  1. copy multiple paragraphs
  2. paste
  3. select the paragraphs
  4. click the icon

(AstonJ) #18

Ah right I got it. Paste ALL the text first, then select it, then click on the icon.

I’m guessing other people may have tried it the way I did - select all text, click the icon and paste - as this is what I’ve always done with traditional forums.

This should definitely be added to the DiscourseBot if it isn’t already :relaxed:

Thanks for your replies :slight_smile: although I wonder, would it be possible to change it slightly, so that if no text is selected and that icon is pressed, it inserts [quote][/quote] into the post and puts the cursor in the middle? So people who are used to copying text, clicking that icon and pasting could still do so?