File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
src/Elastic.Documentation.Site/Assets
web-components/SearchOrAskAi/AskAi Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -176,3 +176,6 @@ export function initHighlight() {
176176 hljs . highlightElement
177177 )
178178}
179+
180+ // Export the configured hljs instance for reuse
181+ export { hljs }
Original file line number Diff line number Diff line change 11import { initCopyButton } from '../../../copybutton'
2+ import { hljs } from '../../../hljs'
23import { GeneratingStatus } from './GeneratingStatus'
34import { References } from './RelatedResources'
45import { ChatMessage as ChatMessageType } from './chat.store'
@@ -19,7 +20,6 @@ import {
1920} from '@elastic/eui'
2021import { css } from '@emotion/react'
2122import DOMPurify from 'dompurify'
22- import hljs from 'highlight.js/lib/core'
2323import { Marked , RendererObject , Tokens } from 'marked'
2424import * as React from 'react'
2525import { useEffect , useMemo } from 'react'
You can’t perform that action at this time.
0 commit comments