public override bool Match(InlineProcessor processor, ref StringSlice slice)
        {
            if (!ExtensionsHelper.MatchStart(ref slice, StartString, false))
            {
                return(false);
            }
            else
            {
                if (slice.CurrentChar == '-')
                {
                    slice.NextChar();
                }
            }

            var    includeFile = new InclusionInline();
            string title = null, path = null;

            if (!ExtensionsHelper.MatchLink(ref slice, ref title, ref path))
            {
                return(false);
            }

            includeFile.Title            = title;
            includeFile.IncludedFilePath = path;
            processor.Inline             = includeFile;

            return(true);
        }
        public override bool Match(InlineProcessor processor, ref StringSlice slice)
        {
            if (!ExtensionsHelper.MatchStart(ref slice, StartString, false))
            {
                return(false);
            }
            else
            {
                if (slice.CurrentChar == '-')
                {
                    slice.NextChar();
                }
            }

            var includeFile = new InclusionInline();
            var context     = new InclusionContext();

            if (!ExtensionsHelper.MatchLink(ref slice, ref context))
            {
                return(false);
            }

            includeFile.Context = context;
            processor.Inline    = includeFile;

            return(true);
        }