Exemple #1
0
        string ProcessInlineTagTutorial(int Index, string Text)
        {
            int Index2 = Text.IndexOf("}", Index);

            if (Index2 != -1)
            {
                string sLink = Text.Substring(Index, Index2 - Index + 1);
                string S     = sLink.Remove(0, TutorialStartTag.Length).TrimStart();
                S = S.Remove(S.Length - 1, 1).TrimEnd();

                Tutorial T = Tutorials.FirstOrDefault(item => item.Id.IsSameText(S));
                if (T != null)
                {
                    S    = GetLink(T);
                    Text = Text.Replace(sLink, S);
                }
            }

            return(Text);
        }
Exemple #2
0
 string GetLink(Tutorial T)
 {
     return(GetLink(GetTutorialUrl(T.FileName), T.Title));
 }