You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
Server: Add support for sharing notes via a link
This commit is contained in:
@@ -3,6 +3,8 @@ import noteStyle from './noteStyle';
|
||||
import { fileExtension } from './pathUtils';
|
||||
import setupLinkify from './MdToHtml/setupLinkify';
|
||||
import validateLinks from './MdToHtml/validateLinks';
|
||||
import { ItemIdToUrlHandler } from './utils';
|
||||
import { RenderResult, RenderResultPluginAsset } from './MarkupToHtml';
|
||||
|
||||
const MarkdownIt = require('markdown-it');
|
||||
const md5 = require('md5');
|
||||
@@ -114,18 +116,6 @@ interface PluginContext {
|
||||
currentLinks: Link[];
|
||||
}
|
||||
|
||||
interface RenderResultPluginAsset {
|
||||
name: string;
|
||||
path: string;
|
||||
mime: string;
|
||||
}
|
||||
|
||||
interface RenderResult {
|
||||
html: string;
|
||||
pluginAssets: RenderResultPluginAsset[];
|
||||
cssStrings: string[];
|
||||
}
|
||||
|
||||
export interface RuleOptions {
|
||||
context: PluginContext;
|
||||
theme: any;
|
||||
@@ -157,6 +147,8 @@ export interface RuleOptions {
|
||||
audioPlayerEnabled: boolean;
|
||||
videoPlayerEnabled: boolean;
|
||||
pdfViewerEnabled: boolean;
|
||||
|
||||
itemIdToUrl?: ItemIdToUrlHandler;
|
||||
}
|
||||
|
||||
export default class MdToHtml {
|
||||
|
||||
Reference in New Issue
Block a user