mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Testcommit
This commit is contained in:
parent
603f2a2154
commit
b5d457daa9
@ -88,7 +88,7 @@ describe('Configuration', () => {
|
||||
C -->|Three| F[fa:fa-car Car]
|
||||
`,
|
||||
{
|
||||
logLevel:0, arrowMarkerAbsolute: true
|
||||
logLevel:0, arrowMarkerAbsolute: true,fontFamily: '"Noto Sans SC", sans-serif'
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -6,12 +6,12 @@
|
||||
<style>
|
||||
body {
|
||||
/* font-family: 'Mansalva', cursive;*/
|
||||
font-family: 'Mansalva', cursive;
|
||||
font-family: '"Noto Sans SC", sans-serif';
|
||||
}
|
||||
.mermaid-main-font {
|
||||
font-family: '"Noto Sans SC", sans-serif';
|
||||
/* font-family: var(--mermaid-font-family); */
|
||||
}
|
||||
/* .mermaid-main-font {
|
||||
font-family: "trebuchet ms", verdana, arial;
|
||||
font-family: var(--mermaid-font-family);
|
||||
} */
|
||||
/* :root {
|
||||
--mermaid-font-family: '"trebuchet ms", verdana, arial';
|
||||
--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive;
|
||||
|
@ -702,6 +702,7 @@ export const decodeEntities = function(text) {
|
||||
*/
|
||||
const render = function(id, _txt, cb, container) {
|
||||
const cnf = getConfig();
|
||||
console.warn(cnf);
|
||||
// Check the maximum allowed text size
|
||||
let txt = _txt;
|
||||
if (_txt.length > cnf.maxTextSize) {
|
||||
@ -941,7 +942,7 @@ function reinitialize(options) {
|
||||
|
||||
let firstInit = true;
|
||||
function initialize(options) {
|
||||
// console.log('mermaidAPI.initialize');
|
||||
console.log('mermaidAPI.initialize');
|
||||
// Set default options
|
||||
if (typeof options === 'object') {
|
||||
if (firstInit) {
|
||||
@ -950,7 +951,7 @@ function initialize(options) {
|
||||
}
|
||||
setConfig(options);
|
||||
}
|
||||
logger.warn('Initializing mermaidAPI theme', {
|
||||
console.warn('Initializing mermaidAPI theme', {
|
||||
version: pkg.version,
|
||||
options,
|
||||
config,
|
||||
|
Loading…
x
Reference in New Issue
Block a user