new_tag="$1"
# Old deploy
-# sudo docker build . --tag dessalines/lemmy-ui:$new_tag
+# sudo docker build . --tag dessalines/lemmy-ui:$new_tag --platform=linux/amd64
# sudo docker push dessalines/lemmy-ui:$new_tag
# Upgrade version
import { GetSite, GetSiteResponse, LemmyHttp, Site } from "lemmy-js-client";
import path from "path";
import process from "process";
-import sanitize from "sanitize-html";
import serialize from "serialize-javascript";
import sharp from "sharp";
import { App } from "../shared/components/app/app";
<!DOCTYPE html>
<html ${helmet.htmlAttributes.toString()}>
<head>
- <script>window.isoData = ${sanitize(JSON.stringify(isoData))}</script>
+ <script>window.isoData = ${serialize(isoData)}</script>
<script>window.lemmyConfig = ${serialize(config)}</script>
<!-- A remote debugging utility for mobile -->
export function mdToHtml(text: string) {
// restore '>' character to fix quotes
- return { __html: md.render(text.split(">").join(">")) };
+ return { __html: md.render(text) };
}
export function mdToHtmlNoImages(text: string) {
// restore '>' character to fix quotes
- return { __html: mdNoImages.render(text.split(">").join(">")) };
+ return { __html: mdNoImages.render(text) };
}
export function mdToHtmlInline(text: string) {