emoji: { useUnicode: true, // Whether to render using Unicode }, fontEmphasis: { allowWhitespace: false, // Allow leading and trailing spaces }, strikethrough: { needWhitespace: false, // Must there be a first space }, mathBlock: { engine: 'MathJax', // katex or MathJax src: ''...
// 由于中文、英文、Emoji 等字体高度不一致,或者富文本中出现了不同字号的字体, // 可能会造成每行文字的高度不一致。这里可以添加一个修改器来实现固定行高,或者自定义文本行位置。 // 简单的方法: // 1. 创建一个文本行位置修改类,实现 `YYTextLinePositionModifier` 协议。 // 2. 设置到 Label 或 Tex...