public string GetContent() { if (_op.IsContainerBlock()) { return(""); } if (_op.IsMentions()) { return(((InsertDataText)_op.Insert).Value); } var content = _op.IsFormula() || _op.IsText() ? ((InsertDataString)_op.Insert).Value : ""; return(EncodeContent(content)); }
static bool CanBeInBlock(DeltaInsertOp op) => !(op.IsJustNewline() || op.IsCustomBlock() || op.IsVideo() || op.IsContainerBlock());