Skip to content

Broken markdown conversion of “Enumerability and ownership of properties” #7342

@hochan222

Description

@hochan222

What page(s) did you find the problem on?

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties

Specific page section or heading?

  • Detecting, retrieving, and enumerating object properties

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties#detecting_retrieving_and_enumerating_object_properties

What is the problem?

The conversion didn't work properly with markdown.


Link MDN Markdown

ex2 is a simplified version of the current documentation code. In the ex2, when I changed tr to td in tbody, it was converted well. However, looking at the ex1, it seems that there are other problems. The rule of the MDN markdown table all seem to be well maintained. What's the problem? (Of course, in ex1, tr was replaced with td in tbody.)

  • ex1
<table>
  <thead>
    <tr>
      <th></th>
      <th>Own object</th>
      <th>Own object and prototype chain</th>
      <th>Prototype chain only</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Enumerable</td>
      <td>
        <p>
          <code
            ><a
              href="/ko/docs/Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable"
              >propertyIsEnumerable</a
            ></code
          >
        </p>
        <p>
          <code
            ><a
              href="/ko/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty"
              >hasOwnProperty</a
            ></code
          >
        </p>
      </td>
      <td>Not available without extra code</td>
      <td>Not available without extra code</td>
    </tr>
    <tr>
      <td>Nonenumerable</td>
      <td>
        <p>
          <code
            ><a
              href="/ko/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty"
              >hasOwnProperty</a
            ></code
          >
          – filtered to exclude enumerables using
          <code
            ><a
              href="/ko/docs/Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable"
              >propertyIsEnumerable</a
            ></code
          >
        </p>
      </td>
      <td>Not available without extra code</td>
      <td>Not available without extra code</td>
    </tr>
    <tr>
      <td>Enumerable and Nonenumerable</td>
      <td>
        <p>
          <code
            ><a
              href="/ko/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty"
              >hasOwnProperty</a
            ></code
          >
        </p>
      </td>
      <td>
        <code
          ><a href="/ko/docs/Web/JavaScript/Reference/Operators/in"
            >in</a
          ></code
        >
      </td>
      <td>Not available without extra code</td>
    </tr>
  </tbody>
</table>
  • ex2
<table>
    <thead>
      <tr>
        <th></th>
        <th>Own object</th>
        <th>Own object and prototype chain</th>
        <th>Prototype chain only</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th>Enumerable</th>
        <td>
          propertyIsEnumerable
        </td>
        <td>Not available without extra code</td>
        <td>Not available without extra code</td>
      </tr>
      <tr>
        <th>Nonenumerable</th>
        <td>
            hasOwnProperty
        </td>
        <td>Not available without extra code</td>
        <td>Not available without extra code</td>
      </tr>
      <tr>
        <th>Enumerable and Nonenumerable</th>
        <td>
          hasOwnProperty
        </td>
        <td>
          in
        </td>
        <td>Not available without extra code</td>
      </tr>
    </tbody>
  </table>

There is th in the body, so the conversion was not done.

What did you expect to see?

It should be converted to markdown.

Did you test this? If so, how?

no

Metadata

Metadata

Assignees

No one assigned

    Labels

    markdownIssues related to Markdown conversion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions