@Test
public void replNameEndsWithWhitespace() {

  String text = "%md\r\n###Hello";
  assertEquals("md", Paragraph.getRequiredReplName(text));
  text = "%md\t###Hello";
  assertEquals("md", Paragraph.getRequiredReplName(text));
  text = "%md\u000b###Hello";
  assertEquals("md", Paragraph.getRequiredReplName(text));
  text = "%md\f###Hello";
  assertEquals("md", Paragraph.getRequiredReplName(text));
  text = "%md\n###Hello";
  assertEquals("md", Paragraph.getRequiredReplName(text));
  text = "%md ###Hello";
  assertEquals("md", Paragraph.getRequiredReplName(text));
}