From 3d6510c441eb1425f01f6429a60c5ac3f063dab6 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Tue, 15 Jun 2021 12:01:04 +0200 Subject: [PATCH] Fixed code block annotations --- docs/reference/code-blocks.md | 2 +- docs/setup/setting-up-site-search.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/reference/code-blocks.md b/docs/reference/code-blocks.md index c686d8a3f..db023e9d5 100644 --- a/docs/reference/code-blocks.md +++ b/docs/reference/code-blocks.md @@ -247,7 +247,7 @@ document$.subscribe(function() { // (1) _Result_: -``` {: .js .annotate } +``` { .js .annotate } document$.subscribe(function() { // (1) var tables = document.querySelectorAll(/* (2) */ "article table") tables.forEach(function(table) { diff --git a/docs/setup/setting-up-site-search.md b/docs/setup/setting-up-site-search.md index f853bb611..3ad9772af 100644 --- a/docs/setup/setting-up-site-search.md +++ b/docs/setup/setting-up-site-search.md @@ -176,7 +176,7 @@ theme: - search.highlight ``` -Searching for [:octicons-search-24: ^^code highlighting^^][11] yields: +Searching for [:octicons-search-24: ^^code blocks^^][11] yields: [![Search highlighting][12]][12] @@ -276,7 +276,7 @@ When a user enters a query into the search box, the query is pre-processed before it is submitted to the search index. Material for MkDocs will apply the following transformations, which can be customized by [extending the theme][20]: -``` ts +``` { .ts .annotate } export function defaultTransform(query: string): string { return query .split(/"([^"]+)"/g) /* (1) */