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

Does a details tag stay as raw text inside a code block?

+0
−0

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:

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

In backticks

Raw text:

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

Rendered as:

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

As 4 space indented text with no blank line after the previous paragraph

Raw text:

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

Rendered as:

Intro text:

hintsurprise!

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

Sign up to answer this question »