mirror of
https://github.com/array-in-a-matrix/xinny.git
synced 2024-05-16 11:20:17 -04:00
remove twemoji
This commit is contained in:
parent
dfef0a74fa
commit
d0369934a0
Binary file not shown.
Binary file not shown.
|
@ -6,7 +6,7 @@ import parse from 'html-react-parser';
|
||||||
import twemoji from 'twemoji';
|
import twemoji from 'twemoji';
|
||||||
import { sanitizeText } from './sanitize';
|
import { sanitizeText } from './sanitize';
|
||||||
|
|
||||||
export const TWEMOJI_BASE_URL = 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/';
|
export const TWEMOJI_BASE_URL = '';
|
||||||
|
|
||||||
const Math = lazy(() => import('../app/atoms/math/Math'));
|
const Math = lazy(() => import('../app/atoms/math/Math'));
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ const mathOptions = {
|
||||||
* @param {boolean} [maths=false] - render maths (default: false)
|
* @param {boolean} [maths=false] - render maths (default: false)
|
||||||
* @returns React component
|
* @returns React component
|
||||||
*/
|
*/
|
||||||
export function twemojify(text, opts, linkify = false, sanitize = true, maths = false) {
|
export function twemojify(text, opts, linkify = true, sanitize = true, maths = true) {
|
||||||
if (typeof text !== 'string') return text;
|
if (typeof text !== 'string') return text;
|
||||||
let content = text;
|
let content = text;
|
||||||
const options = opts ?? { base: TWEMOJI_BASE_URL };
|
const options = opts ?? { base: TWEMOJI_BASE_URL };
|
||||||
|
|
Loading…
Reference in a new issue