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 BoldMark: TextMark = (props) => {
  return <strong {...props} className="font-bold" />
}

BoldMark.onKeyDown = ({ editor }, evt) => {
  if (applyMarkOnHotKey(editor, evt, 'mod+b', 'bold')) {
    return true
  }

  return false
}