simian 0.1.1

A command-line tool for exploring and implementing Machine Learning algorithms in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { TextMark } from '../types'
import { applyMarkOnHotKey } from '../utils/keyboard'

export const UnderlineMark: TextMark = (props) => {
  return <u {...props} className="underline underline-offset-2" />
}

UnderlineMark.onKeyDown = ({ editor }, evt) => {
  if (applyMarkOnHotKey(editor, evt, 'mod+u', 'underline')) {
    return true
  }

  return false
}