Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code callouts with paragraph rendering incorrectly #562

Open
1 of 3 tasks
natasha-moore-elastic opened this issue Feb 20, 2025 · 0 comments
Open
1 of 3 tasks

Code callouts with paragraph rendering incorrectly #562

natasha-moore-elastic opened this issue Feb 20, 2025 · 0 comments
Assignees
Labels
authoring Relates to our markdown parser bug code blocks

Comments

@natasha-moore-elastic
Copy link

Describe the bug

Per #372, we support having a paragraph between a code block and its callout list, but this is currently rendered as

code block
list
paragraph

instead of

code block
paragraph
list

Examples: https://docs-v3-preview.elastic.dev/elastic/asciidocalypse/tree/main/elasticsearch/docs/reference/query-languages/sql-functions-aggs

where

```sql
FIRST(
    field_name               <1>
    [, ordering_field_name]) <2>
```

**Input**:

1. target field for the aggregation
2. optional field used for ordering

renders as

Image

Related to misplaced callouts in https://github.com/elastic/docs-projects/issues/418 CC @alaudazzi

Expected behavior

In example above, Input: should go after the code block and before the list.

Steps to reproduce

No response

Tooling

  • docs-builder
  • migration tooling
  • I'm not sure
@natasha-moore-elastic natasha-moore-elastic changed the title Code callouts with paragraph not working Code callouts with paragraph rendering incorrectly Feb 20, 2025
@bmorelli25 bmorelli25 added authoring Relates to our markdown parser code blocks labels Feb 20, 2025
@reakaleek reakaleek self-assigned this Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authoring Relates to our markdown parser bug code blocks
Projects
None yet
Development

No branches or pull requests

3 participants