mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 16:04:23 +00:00
Handle wiki style links
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user