1
0
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:
Laurent Cozic
2021-01-29 18:45:11 +00:00
parent 4a847a096b
commit ccbc329cbf
136 changed files with 4713 additions and 5561 deletions

View File

@@ -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 {