示例#1
0
        public void Parse(string text, bool preprocessOnly = false, bool full = true)
        {
            Text = text;

            string relativePath = null;

            if (LocalPath != TransformationData.Document.LocalPath)
            {
                relativePath = GetAbsoluteMarkdownPath();
            }

            preprocessedText = TransformationData.Markdown.Preprocessor.Preprocess(text, TransformationData, preprocessedData, relativePath, full);
            publish          = Markdown.CheckAvailability(TransformationData);

            if (!publish)
            {
                TransformationData.ErrorList.Add(
                    new ErrorDetail(Language.Message("CouldNotPublish"), MessageClass.Info, "", "", 0, 0));
            }
            else
            {
                if (!preprocessOnly)
                {
                    ForceParsing();
                }
            }
        }