mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-02 12:47:41 +02:00
This commit is contained in:
parent
f74732a03d
commit
591324b7bf
@ -194,6 +194,12 @@ export default function useSource(noteBody: string, noteMarkupLanguage: number,
|
||||
padding: 0;
|
||||
}
|
||||
`;
|
||||
const defaultCss = `
|
||||
code {
|
||||
white-space: pre-wrap;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
`;
|
||||
|
||||
html =
|
||||
`
|
||||
@ -203,7 +209,7 @@ export default function useSource(noteBody: string, noteMarkupLanguage: number,
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style>
|
||||
${shim.mobilePlatform() === 'ios' ? iOSSpecificCss : ''}
|
||||
${shim.mobilePlatform() === 'ios' ? `${iOSSpecificCss}\n${defaultCss}` : defaultCss}
|
||||
</style>
|
||||
${assetsToHeaders(result.pluginAssets, { asHtml: true })}
|
||||
</head>
|
||||
|
Loading…
Reference in New Issue
Block a user