# Pasting from Docusaurus breaks code formatting blocks

**URL:** <https://meta.discourse.org/t/pasting-from-docusaurus-breaks-code-formatting-blocks/412919>\
**Category:** Bug\
**Created:** [September 21, 2026, 1:49pm UTC](https://meta.discourse.org/t/pasting-from-docusaurus-breaks-code-formatting-blocks/412919 "2026-09-21T13:49:20Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)\
**Post date:** [September 22, 2026, 8:58pm UTC](https://meta.discourse.org/t/pasting-from-docusaurus-breaks-code-formatting-blocks/412919/4 "2026-09-22T20:58:58Z")

</div>

> [@merefield](#):
>
> this happens with _raw_ pastes from GitHub Markdown too FYI

Can you share an example? I couldn’t reproduce it with some sources I tried.

The issue with the Docusaurus output is that its code block uses one `div` per line, which wasn’t really expected. I merged a fix today.

Here’s the output of the same copy&pasted selection:

* * *

Every document has a unique `id`. By default, a document `id` is the name of the document (without the extension) relative to the root docs directory.

For example, the ID of `greeting.md` is `greeting`, and the ID of `guide/hello.md` is `guide/hello`.

```bash
website # Root directory of your site
└── docs
   ├── greeting.md
   └── guide
      └── hello.md

```

However, the **last part** of the `id` can be defined by the user in the front matter. For example, if `guide/hello.md`’s content is defined as below, its final `id` is `guide/part1`.

```md
---
id: part1
---

Lorem ipsum

```

The ID is used to refer to a document when hand-writing sidebars, or when using docs-related layout components or hooks.

---

_[View the full topic](https://meta.discourse.org/t/pasting-from-docusaurus-breaks-code-formatting-blocks/412919)._
