public MarkdownMaker(string configFile) { tagForSymbol = new Dictionary <string, MarkdownTag>(); var hasParagraphsTags = false; foreach (var line in FileParser.ReadLineFromFile(configFile)) { var tagProperties = line.Split(); var markdownTag = new MarkdownTag(tagProperties[1], tagProperties[2], tagProperties[3] == "formatting_inside", tagProperties[4] == "in_numbers"); if (tagProperties[0] == "paragraph") { ParagraphTags = markdownTag; hasParagraphsTags = true; } else { tagForSymbol.Add(tagProperties[0], markdownTag); } } if (!hasParagraphsTags) { ParagraphTags = new MarkdownTag("<p>", "</p>"); } }
public MarkdownMaker(string configFile) { tagForSymbol = new Dictionary<string, MarkdownTag>(); var hasParagraphsTags = false; foreach (var line in FileParser.ReadLineFromFile(configFile)) { var tagProperties = line.Split(); var markdownTag = new MarkdownTag(tagProperties[1], tagProperties[2], tagProperties[3] == "formatting_inside", tagProperties[4] == "in_numbers"); if (tagProperties[0] == "paragraph") { ParagraphTags = markdownTag; hasParagraphsTags = true; } else tagForSymbol.Add(tagProperties[0], markdownTag); } if (!hasParagraphsTags) ParagraphTags = new MarkdownTag("<p>", "</p>"); }
public MarkdownMaker(Dictionary<string, MarkdownTag> tags) { tagForSymbol = tags; ParagraphTags = new MarkdownTag("<p>", "</p>"); }
public MarkdownMaker(Dictionary <string, MarkdownTag> tags) { tagForSymbol = tags; ParagraphTags = new MarkdownTag("<p>", "</p>"); }