# Language identifier is missing from fenced code block when it is quoted

**URL:** https://meta.discourse.org/t/language-identifier-is-missing-from-fenced-code-block-when-it-is-quoted/327895
**Category:** Feature
**Created:** [September 24, 2024, 10:53am UTC](https://meta.discourse.org/t/language-identifier-is-missing-from-fenced-code-block-when-it-is-quoted/327895 "2024-09-24T10:53:06Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 17, 2025, 2:00pm UTC](https://meta.discourse.org/t/language-identifier-is-missing-from-fenced-code-block-when-it-is-quoted/327895/4 "2025-06-17T14:00:53Z")

</div>

> [@Andrew15-5](#):
>
> But when you then quote its output:

You mean when you quote with text selection right? Using the full quote button work just fine.

> [@Andrew15-5](#):
>
> ```py
> print()
> 
> ```

That is the expected behavior, as when you select text we don’t have access to the original markdown and do an approximation.

Same as reported in

> [@Select to quote shouldn't strip \< and \> characters around links](https://meta.discourse.org/t/select-to-quote-shouldnt-strip-and-characters-around-links/358145/2):
>
> This only happens with the “select to quote” feature, and not with full quotes, because when doing a full quote we fetch the original markdown so we can give 100% accuracy. Select to quote feature must do HTML → Markdown conversion, so there will always be missing content from the original, specially when it is invisible from an HTML point of view.

---

_[View the full topic](https://meta.discourse.org/t/language-identifier-is-missing-from-fenced-code-block-when-it-is-quoted/327895)._
