Handle wiki style links

This commit is contained in:
2024-09-30 19:01:27 +02:00
parent 43d647c9ea
commit b64c13442b
8 changed files with 211 additions and 10 deletions

View File

@@ -19,6 +19,7 @@ import {
saveFileContent,
deleteFile,
getFileUrl,
lookupFileByName,
} from '../services/api';
const isImageFile = (filePath) => {
@@ -37,6 +38,7 @@ const MainContent = ({
onSave,
settings,
pullLatestChanges,
onLinkClick,
}) => {
const [activeTab, setActiveTab] = useState('source');
const { type: themeType } = useTheme();
@@ -212,6 +214,8 @@ const MainContent = ({
<MarkdownPreview
content={content}
baseUrl={window.API_BASE_URL}
onLinkClick={onLinkClick}
lookupFileByName={lookupFileByName}
/>
)}
</div>