Exemple #1
0
        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));
        }
Exemple #2
0
 static bool CanBeInBlock(DeltaInsertOp op) =>
 !(op.IsJustNewline() || op.IsCustomBlock() || op.IsVideo() || op.IsContainerBlock());