feat: consolidate syntax highlighting code into standalone plugin (#9783)
This commit is contained in:
@@ -18,6 +18,7 @@ import UtilPlugin from "core/plugins/util"
|
||||
import ViewPlugin from "core/plugins/view"
|
||||
import ViewLegacyPlugin from "core/plugins/view-legacy"
|
||||
import DownloadUrlPlugin from "core/plugins/download-url"
|
||||
import SyntaxHighlightingPlugin from "core/plugins/syntax-highlighting"
|
||||
import SafeRenderPlugin from "core/plugins/safe-render"
|
||||
// ad-hoc plugins
|
||||
import CoreComponentsPlugin from "core/presets/base/plugins/core-components"
|
||||
@@ -45,6 +46,7 @@ const BasePreset = () => [
|
||||
FilterPlugin,
|
||||
OnCompletePlugin,
|
||||
RequestSnippetsPlugin,
|
||||
SyntaxHighlightingPlugin,
|
||||
SafeRenderPlugin(),
|
||||
]
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@ import OperationSummaryMethod from "core/components/operation-summary-method"
|
||||
import OperationSummaryPath from "core/components/operation-summary-path"
|
||||
import OperationExt from "core/components/operation-extensions"
|
||||
import OperationExtRow from "core/components/operation-extension-row"
|
||||
import HighlightCode from "core/components/highlight-code"
|
||||
import Responses from "core/components/responses"
|
||||
import Response from "core/components/response"
|
||||
import ResponseExtension from "core/components/response-extension"
|
||||
@@ -103,7 +102,6 @@ const CoreComponentsPlugin = () => ({
|
||||
OperationSummary,
|
||||
OperationSummaryMethod,
|
||||
OperationSummaryPath,
|
||||
highlightCode: HighlightCode,
|
||||
responses: Responses,
|
||||
response: Response,
|
||||
ResponseExtension: ResponseExtension,
|
||||
|
||||
Reference in New Issue
Block a user