@leanprover/unicode-input-component
v0.1.0
Published
Typescript support for contenteditable divs with the Unicode input support of the Lean 4 theorem prover
Downloads
3
Readme
Usage
- Add a new
contenteditable
div to your HTML that serves as the input:<div id="unicode-input" contenteditable="true"></div>
- Import
InputAbbreviationRewriter
from this package and create a newInputAbbreviationRewriter
for#unicode-input
- Make sure to call
InputAbbreviationRewriter.resetAbbreviations
whenever setting the text of#unicode-input
programmatically, as theInputAbbreviationRewriter
only triggers on actual user input - Style
#unicode-input
to your liking
This component only supports single-line input and no rich text styling other than the abbreviation highlighting.