All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.formats.font.js Maven / Gradle / Ivy

import { ClassAttributor, Scope, StyleAttributor } from 'parchment';
const config = {
  scope: Scope.INLINE,
  whitelist: ['serif', 'monospace']
};
const FontClass = new ClassAttributor('font', 'ql-font', config);
class FontStyleAttributor extends StyleAttributor {
  value(node) {
    return super.value(node).replace(/["']/g, '');
  }
}
const FontStyle = new FontStyleAttributor('font', 'font-family', config);
export { FontStyle, FontClass };
//# sourceMappingURL=font.js.map




© 2015 - 2025 Weber Informatics LLC | Privacy Policy