How to use the twemoji/2/twemoji.amd.parse function in twemoji

To help you get started, we’ve selected a few twemoji examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MicroPad / Web / app / src / react-web / components / note-viewer / elements / markdown / MarkdownElementComponent.tsx View on Github external
return new Promise(resolve => {
			let html = this.converter.makeHtml(element.content);
			if (navigator.onLine || (window as IAppWindow).isElectron) html = Twemoji.parse(html, icon => require(`twemoji/2/svg/${icon}.svg`));
			resolve(html);
		});
	}

twemoji

A Unicode standard based way to implement emoji across all platforms.

MIT
Latest version published 2 years ago

Package Health Score

68 / 100
Full package analysis