Knagis/CommonMark.NET

Superscript caret

Closed this issue · 1 comments

Hello again,

I cloned SubscriptTests (which are themselves a revised copy of StrikethroughTests), and this fails:

    public void SuperscriptExample10()
    {
        // '[' char in the middle will delay the ^^ match to the post-process phase.
        Helpers.ExecuteTest("foo ^^ba[r^^", "<p>foo <sup><sup>ba[r</sup></sup></p>", Settings);
    }

Expected:

  <<p>foo <sup><sup>ba[r</sup></sup></p>>.

Actual:

  <<p>foo <strong>ba[r</strong></p>>.

The funny thing is the same example in subscript passes.

Any ideas? Does this have to do with InlineStackPriority.Emphasis? Should I create a new priority value for sub/sup?

Silly me. Of course I missed PostProcessInlineStack().

Sorry about the noise.