1.0.1 • Published 1 year ago
esalike v1.0.1
WARNING: Current esalike has issues with the usage of esarea
esalike
An esa.io like markdown input support provided as a NPM package.
This package imported core features from esarea and is rewritten with TypeScript.
How to use
Install this package first.
npm install esalike
Use ApplyMarkdownInputAssist
function to apply esalike's markdown input support.
import { ApplyMarkdownInputAssist } from 'esalike';
const editor = document.getElementById('YOUR_TEXTAREA_ID') as HTMLTextAreaElement;
ApplyMarkdownInputAssist(editor);
Supported browsers
The latest versions of Chrome and Firefox.
Demo & Development
You can try the demo app in this repo to see how esalike works.
npm install
npm run dev # Open http://localhost:3000
npm run dev
builds both esalike package and the demo app. The command also keeps watching files for both directories to support development.