mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[ES|QL] Removes highlighting from script as it is being provided by ES docs already (#215631)
## Summary This PR https://github.com/elastic/elasticsearch/pull/125251 adds highlighting for the code blocks so it is not needed to be added on the kibana side. This PR removes it. I didnt run the script because it will remove the highlighting. It will run next Monday with @craigtaverner 's PR being merged
This commit is contained in:
parent
a55e3253e7
commit
935fc0f758
1 changed files with 1 additions and 8 deletions
|
@ -107,10 +107,7 @@ function writeFunctionDocs(functionDocs: Map<string, DocsSectionContent>, pathTo
|
|||
doc.description,
|
||||
Array.from(functionDocs.keys())
|
||||
);
|
||||
const defaultMessage = replaceCodeBlocksForESQLFormatting(docWithoutLinks).replaceAll(
|
||||
'`',
|
||||
'\\`'
|
||||
);
|
||||
const defaultMessage = docWithoutLinks.replaceAll('`', '\\`');
|
||||
return `
|
||||
const foo =
|
||||
// Do not edit manually... automatically generated by scripts/generate_esql_docs.ts
|
||||
|
@ -181,10 +178,6 @@ function removeAsciiDocInternalCrossReferences(asciidocString: string, functionN
|
|||
});
|
||||
}
|
||||
|
||||
function replaceCodeBlocksForESQLFormatting(text: string) {
|
||||
return text.replace(/```(\n[\s\S]*?\n)```/g, '``` esql$1```');
|
||||
}
|
||||
|
||||
/**
|
||||
* This function searches the AST for the functions list
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue