Ejemplo n.º 1
0
		public static OpenMarkdown Parse(TextReader reader, Configuration Config)
		{
			OpenMarkdown MMD = new OpenMarkdown(Config);
			MMD.Reader = reader;

			XmlDocument doc = new XmlDocument();
			MMD.Document = doc;
			MMD.TopElement = doc.CreateElement("markdown");
			doc.AppendChild(MMD.TopElement);
			XmlElement body = doc.CreateElement("body");
			MMD.TopElement.AppendChild(body);
			MMD.Parse(body);

			MMD.InsertMetadata();
			MMD.InsertLinks();
			MMD.InsertFootnotes();

			return MMD;
		}