コード例 #1
0
ファイル: ContentFilters.cs プロジェクト: nevergofull/A
        public SubverseLinkFilter()
        {
            ProcessingStage = ProcessingStage.Outbound;
            Priority        = 10;
            IsReadOnly      = false;

            ProcessLogic = delegate(Match m, string matchSource, object state)
            {
                return(String.Format("[{0}]({1})", m.Value, VoatUrlFormatter.Subverse(m.Groups["sub"].Value + (m.Groups["anchor"].Success ? m.Groups["anchor"].Value : ""))));
            };
        }
コード例 #2
0
        public SubverseLinkFilter()
        {
            ProcessingStage = ProcessingStage.Outbound;
            Priority        = 10;
            IsReadOnly      = false;

            ProcessLogic = delegate(Match m, string matchSource, object state)
            {
                return(String.Format("[{0}]({1})", m.Value, VoatUrlFormatter.Subverse(m.Groups["name"].Value + (m.Groups["fullPath"].Success ? m.Groups["fullPath"].Value : ""), new Common.PathOptions(true, true))));
            };
        }