Skip to content

Commit 9cabed4

Browse files
Disable indented code blocks in markdown
They are confusing and cause issues when including html templates (which are indented) in markdown files. To create a block of code, use backticks.
1 parent 226b443 commit 9cabed4

File tree

1 file changed

+2
-2
lines changed
  • doc-tool/src/dotty/tools/dottydoc/staticsite

1 file changed

+2
-2
lines changed

doc-tool/src/dotty/tools/dottydoc/staticsite/Site.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,10 @@ object Site {
446446
val markdownOptions: DataHolder =
447447
new MutableDataSet()
448448
.setFrom(ParserEmulationProfile.KRAMDOWN.getOptions)
449+
.set(Parser.INDENTED_CODE_BLOCK_PARSER, false)
449450
.set(AnchorLinkExtension.ANCHORLINKS_WRAP_TEXT, false)
450451
.set(AnchorLinkExtension.ANCHORLINKS_ANCHOR_CLASS, "anchor")
452+
.set(EmojiExtension.ROOT_IMAGE_PATH, "https://github.global.ssl.fastly.net/images/icons/emoji/")
451453
.set(Parser.EXTENSIONS, Arrays.asList(
452454
TablesExtension.create(),
453455
TaskListExtension.create(),
@@ -457,6 +459,4 @@ object Site {
457459
YamlFrontMatterExtension.create(),
458460
StrikethroughExtension.create()
459461
))
460-
.set(EmojiExtension.ROOT_IMAGE_PATH,
461-
"https://github.global.ssl.fastly.net/images/icons/emoji/")
462462
}

0 commit comments

Comments
 (0)