/// <summary> /// Detects proper companion to HTML tag /// </summary> /// <param name="tag"></param> /// <param name="content"></param> /// <param name="sb"></param> /// <returns></returns> public static appendType markdownTag(this String tag, String content, ITextRender sb) { String prefix = tag; appendType type = tag.detectMarkdownStructure(); if (type != appendType.none) { sb.Append(content, type, true); } else { type = detectMarkdownTagHeading(tag); } if (type == appendType.none) { type = appendType.section; } return(type); }