mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-02 18:09:58 +08:00
feat(editor): add feature flag for code block html preview (#12397)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced an experimental "Code block HTML preview" feature, allowing users to preview HTML within code blocks when enabled. - **Settings** - Added a toggle in experimental features to enable or disable the code block HTML preview. - **Localization** - Added English translations for the new code block HTML preview feature and its description in workspace settings. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
+2
-1
@@ -61,7 +61,8 @@ export const EdgelessSnapshot = (props: Props) => {
|
||||
.foundation(framework)
|
||||
.theme(framework)
|
||||
.database(framework)
|
||||
.linkedDoc(framework).value;
|
||||
.linkedDoc(framework)
|
||||
.codeBlockHtmlPreview(framework).value;
|
||||
return manager
|
||||
.get('preview-edgeless')
|
||||
.concat([ViewportElementExtension('.ref-viewport')]);
|
||||
|
||||
Reference in New Issue
Block a user