Compare commits

..

No commits in common. "99d3a234f4618d0baae9c56fbf35baab085d1f67" and "b82095ca7af02e0f8cb1f1673d06e7716b3ee09d" have entirely different histories.

3 changed files with 7 additions and 31 deletions

View File

@ -1,6 +0,0 @@
# Editor
*.swp
*.swo
meilisearch-linux-amd64
data.ms/

View File

@ -1,14 +0,0 @@
# Qotnews Search Server
Download MeiliSearch with:
```
wget https://github.com/meilisearch/MeiliSearch/releases/download/v0.11.1/meilisearch-linux-amd64
chmod +x meilisearch-linux-amd64
```
Run with:
```
MEILI_NO_ANALYTICS=true ./meilisearch-linux-amd64
```

View File

@ -56,9 +56,9 @@ class Article extends React.Component {
let nodes = null; let nodes = null;
if (story.text) { if (story.text) {
let div = document.createElement('div'); let domparser = new DOMParser();
div.innerHTML = story.text; let doc = domparser.parseFromString(story.text, 'text/html');
nodes = div.childNodes; nodes = doc.querySelector('body').children;
} }
return ( return (
@ -86,14 +86,10 @@ class Article extends React.Component {
<p dangerouslySetInnerHTML={{ __html: x }} /> <p dangerouslySetInnerHTML={{ __html: x }} />
) )
: :
(v.nodeName === '#text' ? <>
<p>{v.data}</p> <v.localName dangerouslySetInnerHTML={{ __html: v.innerHTML }} />
: {v.localName == 'pre' && <button onClick={() => this.pConvert(k)}>Convert Code to Paragraph</button>}
<> </>
<v.localName dangerouslySetInnerHTML={v.innerHTML ? { __html: v.innerHTML } : null} />
{v.localName == 'pre' && <button onClick={() => this.pConvert(k)}>Convert Code to Paragraph</button>}
</>
)
)} )}
</div> </div>
: :