Ver Fonte

chore: update readme with defaultLanguage option

Timothy Lin há 2 anos atrás
pai
commit
2bd23c628e
1 ficheiros alterados com 9 adições e 0 exclusões
  1. 9 0
      README.md

+ 9 - 0
README.md

@@ -194,6 +194,15 @@ By default, if `{name}` does not correspond to a [language supported by refracto
 
 If you would like to silently skip `<code>` elements with invalid languages or support line numbers and line highlighting for code blocks without a specified language, set this option to `true`.
 
+#### options.defaultLanguage
+
+Type: `string`.
+Default: ``.
+
+Uses the specified language as the default if none is specified. Takes precedence over `ignoreMissing`.
+
+Note: The language must be first registered with [refractor].
+
 #### options.showLineNumbers
 
 Type: `boolean`.