Selaa lähdekoodia

chore: update readme with defaultLanguage option

Timothy Lin 2 vuotta sitten
vanhempi
säilyke
2bd23c628e
1 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  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`.