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 StrikethroughMark: TextMark = (props) => {
  return <span {...props} className="line-through" />
}

StrikethroughMark.onKeyDown = ({ editor }, evt) => {
  if (applyMarkOnHotKey(editor, evt, 'mod+shift+u', 'strikethrough')) {
    return true
  }

  return false
}