Communities

(DEV) Codidact Meta
(DEV) Codidact Meta
(DEV) Writing
(DEV) Writing
Proposals
Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

50%
+0 −0
Q&A Does a details tag stay as raw text inside a code block?

Does a <details> tag stay as raw text inside a code block? As 4 space indented text Raw text: <details><summary>hint</summary>surprise!</details> Rendered as...

0 answers  ·  posted 1d ago by trichoplax‭

Question lets-see-if-this-works
#1: Initial revision by user avatar trichoplax‭ · 2025-07-09T17:41:41Z (1 day ago)
Does a details tag stay as raw text inside a code block?
Does a `<details>` tag stay as raw text inside a code block?

### As 4 space indented text
Raw text:
```text
    <details><summary>hint</summary>surprise!</details>
```

Rendered as:

    <details><summary>hint</summary>surprise!</details>

### In backticks
Raw text:
````text
```html
<details><summary>hint</summary>surprise!</details>
```
````

Rendered as:
```html
<details><summary>hint</summary>surprise!</details>
```

### As 4 space indented text with no blank line after the previous paragraph
Raw text:
```text
Intro text:
    <details><summary>hint</summary>surprise!</details>
```

Rendered as:

Intro text:
    <details><summary>hint</summary>surprise!</details>