internal string GetListTag(DeltaInsertOp op) { return(op.IsOrderedList() ? _options.OrderedListTag : op.IsBulletList() ? _options.BulletListTag : op.IsCheckedList() ? _options.BulletListTag : op.IsUncheckedList() ? _options.BulletListTag : ""); }
public OpToHtmlConverter(DeltaInsertOp op, OpToHtmlConverterOptions options = null) : base(op, options ?? new OpToHtmlConverterOptions()) { }
public bool HasHigherIndentThan(DeltaInsertOp op) { return((Attributes.Indent ?? 0) > (op.Attributes.Indent ?? 0)); }
public bool HasSameIndentationAs(DeltaInsertOp op) { return(Attributes.Indent == op.Attributes.Indent); }
// adi: alignment direction indentation public bool HasSameAdiAs(DeltaInsertOp op) { return(Attributes.Align == op.Attributes.Align && Attributes.Direction == op.Attributes.Direction && Attributes.Indent == op.Attributes.Indent); }
public bool IsSameHeaderAs(DeltaInsertOp op) { return(Attributes.Header == op.Attributes.Header && IsHeader()); }
public bool IsSameListAs(DeltaInsertOp op) { return(op.Attributes.List.HasValue && (Attributes.List == op.Attributes.List || op.IsACheckList() && IsACheckList())); }
public OpConverter(DeltaInsertOp op, OpConverterOptions options) { _op = op; _options = options; }
static bool IsInlineData(DeltaInsertOp op) => op.IsInline();
static bool CanBeInBlock(DeltaInsertOp op) => !(op.IsJustNewline() || op.IsCustomBlock() || op.IsVideo() || op.IsContainerBlock());
public BlockGroup(DeltaInsertOp op, IList <DeltaInsertOp> ops) { Op = op; Ops = ops; }
public BlotBlock(DeltaInsertOp op) : base(op) { }
public VideoItem(DeltaInsertOp op) : base(op) { }
public SingleItem(DeltaInsertOp op) { Op = op; }