@@ -200,6 +200,46 @@ public async Task ShouldNotEscapeAtWhenFalse()
200200 result . Content . ShouldBe ( output , StringCompareShould . IgnoreLineEndings ) ;
201201 }
202202
203+ [ Test ]
204+ public async Task ShouldEscapeAtWhenOverriddenByMetadata ( )
205+ {
206+ // Given
207+ const string input = "Looking @Good, @Man!" ;
208+ const string output = @"<p>Looking @Good, @Man!</p>
209+ " ;
210+ TestDocument document = new TestDocument ( input )
211+ {
212+ { MarkdownKeys . EscapeAtInMarkdown , true }
213+ } ;
214+ RenderMarkdown markdown = new RenderMarkdown ( ) . EscapeAt ( false ) ;
215+
216+ // When
217+ TestDocument result = await ExecuteAsync ( document , markdown ) . SingleAsync ( ) ;
218+
219+ // Then
220+ result . Content . ShouldBe ( output , StringCompareShould . IgnoreLineEndings ) ;
221+ }
222+
223+ [ Test ]
224+ public async Task ShouldNotEscapeAtWhenOverriddenByMetadata ( )
225+ {
226+ // Given
227+ const string input = "Looking @Good, @Man!" ;
228+ const string output = @"<p>Looking @Good, @Man!</p>
229+ " ;
230+ TestDocument document = new TestDocument ( input )
231+ {
232+ { MarkdownKeys . EscapeAtInMarkdown , false }
233+ } ;
234+ RenderMarkdown markdown = new RenderMarkdown ( ) . EscapeAt ( ) ;
235+
236+ // When
237+ TestDocument result = await ExecuteAsync ( document , markdown ) . SingleAsync ( ) ;
238+
239+ // Then
240+ result . Content . ShouldBe ( output , StringCompareShould . IgnoreLineEndings ) ;
241+ }
242+
203243 [ Test ]
204244 public async Task ShouldNotEscapeAtWhenEscapedBySlash ( )
205245 {
0 commit comments