cancel
Showing results for 
Search instead for 
Did you mean: 

Text editor issue: quoting with code blocks is still broken.

Andrew Neil
Super User

But quoting with code blocks is still broken.

Reply moved from this thread: Don't litter posts with whitespace (empty paragraphs inserted around code blocks)

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
12 REPLIES 12

@Andrew Neil wrote:

But quoting with code blocks is still broken.


Indeed.

Composing a post with a quote with a code block inside:


Schermafbeelding 2025-03-21 164419.pngTrying to post:Schermafbeelding 2025-03-21 164329.png

Final post:Schermafbeelding 2025-03-21 164428.png

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.

Yes - that's the one!

I thought I had a thread about that, but can't find it.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
Andrew Neil
Super User

The editor shows it OK:

AndrewNeil_1-1750494917243.png

the code is within the quote block

 

But posting breaks it:

AndrewNeil_0-1750494907574.png

the code is now outside the quote block

 

When this happens, you get the "Invalid HTM was found" message.

So it seems that the problem is in whatever it is which performs this HTML "check" ?

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Hi Andrew,

Thanks for reporting, I could replicate the issue.

However, in the scenario when the code was simply copied/pasted in the quote and not embedded via the Insert/Edit code sample, the publication went through and code stayed in the same quote block (the error was still received, but double-clicking on it did the job). 

Lina_DABASINSKAITE_0-1750928102896.png
Let me bring this issue further with the support team and I’ll get back to you. 

If you notice anything else, let us know.

Thanks,
Lina



In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

@Lina_DABASINSKAITE wrote:

 (the error was still received, but double-clicking on it did the job). 


Yes, that error comes up a lot - usually for no apparent reason.

Usually, just hitting 'Post' again works - with no obvious changes!

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
Lina_DABASINSKAITE
Community manager
Community manager

Hello all, 

The support team has successfully replicated the issue and confirmed that it's a bug. The engineering team is actively working on a resolution. At this time, we can go give any estimation of when it will be solved.

I will keep you posted once it's done. 

Regards,
Lina


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

@Lina_DABASINSKAITE wrote:

The support team has successfully replicated the issue and confirmed that it's a bug.


Is that the issue with the quoting, or the issue with the frequent "Invalid HTML" messages?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
jumman_JHINGA
Senior III

i also face this issue, when i copy pasted improvised post from chatGPT, i was thing its a feature that autmatically removes HTML codes insterted by chatGPT. 


@jumman_JHINGA wrote:

i also face this issue,


Which issue?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.