MarkDown 差分,表の表示

+ と - をソースの中で表示したい

f:id:happy_teeth_ago:20200828152624p:plain

解答 言語の箇所に diffを指定

f:id:happy_teeth_ago:20200828152814p:plain

const createText = () => {
    const p = document.getElementById('text');
    const rnd = Math.floor(Math.random() * textLists.length);
    
-   p.textContent = textLists[rnd];
    

+   textLists[rnd].split('').map(value => {
+       p.appendChild(value);
+   })

};

表を表示する

f:id:happy_teeth_ago:20200828172320p:plain

|  TH  |  TH  |
| ---- | ---- |
|  TD  |  TD  |
|  TD  |  TD  |