public override string GetValue(object value)
        {
            var snippet = (Snippet)value;

            string path = Regex.Replace(
                snippet.FilePath,
                _pattern,
                "",
                RegexOptions.IgnoreCase);

            path = path.Replace('\\', '/');

            return($"[{MarkdownHelper.Escape(snippet.GetTitleWithoutShortcut())}]({path})");
        }
Пример #2
0
        private void WriteHeaderTitles()
        {
            bool isFirst = true;

            foreach (ColumnDefinition definition in ColumnDefinitions)
            {
                if (isFirst)
                {
                    isFirst = false;
                }
                else
                {
                    Write(" ");
                    WriteColumnSeparator();
                    Write(" ");
                }

                Write(MarkdownHelper.Escape(definition.Title));
            }

            WriteLine();
        }