Skip to content

Markdown conversion error with nested dl #4205

Closed
@wbamberg

Description

Looking at the Temporal docs, I found what looks like an error in the Markdown converter, when a dd contains a nested dl and then after the nested dl contains another element.

Given HTML like this:

<dl>
  <dt>thing</dt>
  <dd>nested definition:
    <dl>
      <dt>thang</dt>
      <dd>stuff</dd>
    </dl>
  </dd>
</dl>

...I get the expected output:

- thing
  - : nested definition:
    - thang
      - : stuff

But given this:

<dl>
  <dt>thing</dt>
  <dd>nested definition:
    <dl>
      <dt>thang</dt>
      <dd>stuff</dd>
    </dl>
    <p>I'm what breaks it</p>
  </dd>
</dl>

(i.e. an extra element after the nested dl), I get:

- thing
  - : nested definition:
    - thang \* : stuff I'm what breaks it

Metadata

Assignees

Labels

markdownmarkdown related issues and pull requestsneeds triageTriage needed by staff and/or partners. Automatically applied when an issue is opened.🐌 idleIssues and PRs without recent activity. Flagged for maintainer follow-up.🧑‍🤝‍🧑 communitycontributions by our wonderful community

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions