We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 112b427 commit ceff934Copy full SHA for ceff934
markdown-math.html
@@ -97,14 +97,22 @@ <h2>Generated HTML:</h2>
97
],
98
throwOnError: false
99
});
100
+ const copied = output.cloneNode(true);
101
+ Array.from(copied.querySelectorAll('.katex-html')).forEach(el => {
102
+ el.parentNode.removeChild(el);
103
+ });
104
+ htmlOutput.value = copied.innerHTML;
105
}
106
107
input.addEventListener('input', renderContent);
108
109
copyButton.addEventListener('click', () => {
110
htmlOutput.select();
111
document.execCommand('copy');
- alert('HTML copied to clipboard!');
112
+ copyButton.textContent = 'Copied!';
113
+ setTimeout(() => {
114
+ copyButton.textContent = 'Copy HTML';
115
+ }, 2000);
116
117
118
renderContent();
0 commit comments