The first mordent in this measure will be played as D , C# , D. The second mordent in the same measure doesn't have a sharp like the first mordent.
Will the sharp accidental of the first mordent affect the second mordent since they are both in the same measure?
There is a very similar question (Would an accidental in a mordant still be effective for the whole measure?); however, the question itself is not specific to this situation, and although the primary answer addresses it, it's ambiguous.
I'm looking for a documented answer to this specific case.