Skip to content

Commit 3f03761

Browse files
committed
Enable cmark smart punctuation in doc comments
The following unescaped sequences will be rendered with cmark's "smart punctuation" rules, roughly: - Closed pairs of single/double straight quotes -> curly quotes - Double dash: en-dash - Triple dash: em-dash - Three periods -> ellipsis character rdar://problem/24794606
1 parent c782dda commit 3f03761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Markup/Markup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ parseElement(MarkupContext &MC, LineList &LL, ParseState State) {
320320
Document *llvm::markup::parseDocument(MarkupContext &MC, LineList &LL) {
321321
auto Comment = LL.str();
322322
auto CMarkDoc = cmark_parse_document(Comment.c_str(), Comment.size(),
323-
CMARK_OPT_DEFAULT);
323+
CMARK_OPT_SMART);
324324

325325
if (CMarkDoc == nullptr)
326326
return nullptr;

0 commit comments

Comments
 (0)