mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-18 09:35:20 +02:00
10 lines
196 B
TypeScript
10 lines
196 B
TypeScript
|
import { Locale } from './types';
|
||
|
|
||
|
export default (md: string, locale: Locale) => {
|
||
|
if (locale.lang === 'en-gb') return md;
|
||
|
|
||
|
md = md.replace(/\(\//g, `(/${locale.pathPrefix}/`);
|
||
|
|
||
|
return md;
|
||
|
};
|