From 1f3e562fc1bc9013fe6c0c745d1dfc8aeec1b02b Mon Sep 17 00:00:00 2001 From: MDLeom <43627182+curbengh@users.noreply.github.com> Date: Sat, 25 Apr 2020 05:52:09 +0100 Subject: [PATCH 1/2] docs(highlight): 'sublanguage highlight' requirement --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4bba6716..106174b6 100644 --- a/README.md +++ b/README.md @@ -287,7 +287,7 @@ Option | Description | Default `lang` | Language | `caption` | Caption | `tab`| Replace tabs | -`autoDetect` | Detect language automatically | false +`autoDetect` | Detect language automatically
_Sublanguage highlight requires `autoDetect` to be enabled and `lang` to be unset_ | false `mark` | Line highlight specific line(s) | ### htmlTag(tag, attrs, text, escape) From 022266f300730fd6ae5659e352a2e293e52e177e Mon Sep 17 00:00:00 2001 From: MDLeom <43627182+curbengh@users.noreply.github.com> Date: Sat, 25 Apr 2020 06:12:31 +0100 Subject: [PATCH 2/2] docs(highlight): warn 'autoDetect' usage --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 106174b6..173da5cb 100644 --- a/README.md +++ b/README.md @@ -287,7 +287,7 @@ Option | Description | Default `lang` | Language | `caption` | Caption | `tab`| Replace tabs | -`autoDetect` | Detect language automatically
_Sublanguage highlight requires `autoDetect` to be enabled and `lang` to be unset_ | false +`autoDetect` | Detect language automatically (warning: slow)
_Sublanguage highlight requires `autoDetect` to be enabled and `lang` to be unset_ | false `mark` | Line highlight specific line(s) | ### htmlTag(tag, attrs, text, escape)