mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-10-31 02:44:17 +01:00 
			
		
		
		
	Testcommit
This commit is contained in:
		| @@ -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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Knut Sveidqvist
					Knut Sveidqvist