react-styleguidist icon indicating copy to clipboard operation
react-styleguidist copied to clipboard

Markdown table broken props table styles

Open ZxBing0066 opened this issue 4 years ago • 1 comments

Current behavior

Write a markdown table in some case, will broken the props table styles.

Right table header style: image When write a markdown table: image

To reproduce

There is a demo here: https://codesandbox.io/s/crazy-drake-j7vic?file=/styleguide.config.js

  1. first go to: https://j7vic.sse.codesandbox.io/#/Introduction
  2. click button, then the style of props table in button will broken
  3. just refresh, the style will back

Expected behavior Fix the bug

ZxBing0066 avatar Dec 10 '20 08:12 ZxBing0066

I also had the same problem. when use the following two methods:

|A|B|C|
|-|-|-|
|a|b|c|
|a|b|c|
// or
<table>
  <tr>
    <th>A</th>
    <th>B</th>
    <th>C</th>
  </tr>
  <tr>
    <td>a</td>
    <td>b</td>
    <td>c</td>
  </tr>  
</table>

stephenliu1944 avatar Dec 15 '22 11:12 stephenliu1944