private static void HandleBreak(ConverterContext context) { context.PopUntil <Paragraph>(); var sentence = new Sentence(); context.Add(sentence); context.AddStack.Push(sentence); }
private static void HandleStrong(ConverterContext context) { if (!context.Enumerable.Current.IsOpening) { throw new InvalidOperationException("Closing strong without opening"); } var text = TextUntil(context, InlineTag.Strong); context.Add(new Emphasis(text) { Level = EmphasisLevel.Strong }); }
public static void HandleEmphasis(ConverterContext context) { if (!context.Enumerable.Current.IsOpening) { throw new InvalidOperationException("Closing emphasis without opening"); } var text = TextUntil(context, InlineTag.Emphasis); context.Add(new Prosody { Elements = new List <ISsml> { new PlainText(text) }, Pitch = ProsodyPitch.ExtraHigh }); }
private static void HandleText(ConverterContext context) { context.Add(new PlainText(context.Enumerable.Current.Inline.LiteralContent)); }