f8970941 by Leff Tubat

Fixed formatting

1 parent 50ef50e1
...@@ -193,7 +193,14 @@ function App() { ...@@ -193,7 +193,14 @@ function App() {
193 if (!matches) { 193 if (!matches) {
194 var replaceTags = (parsedData.replace(/(?:\r\n|\r|\n)/g, '<br>')) 194 var replaceTags = (parsedData.replace(/(?:\r\n|\r|\n)/g, '<br>'))
195 } else { 195 } else {
196 replaceTags = (parsedData.replace(':',':<code>').replace('<?','&#60;?').replace('?>','?&#62;').replace(/\n/g, '<br>')) 196 replaceTags = (parsedData
197 .replace(':',':<code>')
198 .replace('<?','&#60;?')
199 .replace('?>','?&#62;')
200 .replace(/\n/g, '<br>')
201 .replace(/\*\*(.*?)\*\*/g, '<b>$1</b>')
202 .replace(/###\s(.+)/g, '<h3>$1</h3>')
203 )
197 } 204 }
198 205
199 for (let i = 0; i < replaceTags.length; i++) { 206 for (let i = 0; i < replaceTags.length; i++) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!