Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | 1x | import type { DefaultImplicitFormatMap } from 'roosterjs-content-model-types'; /** * @internal * A map from tag name to its default implicit formats */ export const defaultContentModelFormatMap: DefaultImplicitFormatMap = { a: { underline: true, textColor: undefined, // Set to undefined to force override color from parent element so we can write correct link color if any, because browser will assign a default color for link if it doesn't have one }, blockquote: { marginTop: '1em', marginBottom: '1em', marginLeft: '40px', marginRight: '40px', }, code: { fontFamily: 'monospace', }, h1: { fontWeight: 'bold', fontSize: '2em', }, h2: { fontWeight: 'bold', fontSize: '1.5em', }, h3: { fontWeight: 'bold', fontSize: '1.17em', }, h4: { fontWeight: 'bold', fontSize: '1em', // Set this default value here to overwrite existing font size when change heading level }, h5: { fontWeight: 'bold', fontSize: '0.83em', }, h6: { fontWeight: 'bold', fontSize: '0.67em', }, p: { marginTop: '1em', marginBottom: '1em', }, pre: { fontFamily: 'monospace', whiteSpace: 'pre', marginTop: '1em', marginBottom: '1em', }, th: { fontWeight: 'bold', }, }; |