this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make code blocks focusable

+1 -1
+1 -1
src/utils/enhance-content.js
··· 120 120 p.querySelectorAll('br').forEach((br) => br.replaceWith('\n')); 121 121 }); 122 122 const codeText = nextParagraphs.map((p) => p.innerHTML).join('\n\n'); 123 - pre.innerHTML = `<code>${codeText}</code>`; 123 + pre.innerHTML = `<code tabindex="0">${codeText}</code>`; 124 124 block.replaceWith(pre); 125 125 nextParagraphs.forEach((p) => p.remove()); 126 126 }