mirror of
https://github.com/wassname/template.git
synced 2026-07-26 13:37:31 +08:00
Add support for external bibtex files
This commit is contained in:
+4
-3
@@ -22,10 +22,10 @@ import Meta from './transforms/meta';
|
||||
import { makeStyleTag } from './styles/styles';
|
||||
import TOC from './transforms/toc';
|
||||
import Typeset from './transforms/typeset';
|
||||
// import Bibliography from './transforms/bibliography';
|
||||
import Bibliography from './transforms/bibliography';
|
||||
|
||||
const transforms = [
|
||||
HTML, makeStyleTag, TOC, Byline, Polyfills, Mathematics, Meta, Typeset//, Bibliography
|
||||
HTML, makeStyleTag, TOC, Byline, Polyfills, Mathematics, Meta, Typeset, Bibliography
|
||||
];
|
||||
|
||||
/* Distill Transforms */
|
||||
@@ -42,11 +42,12 @@ const distillTransforms = [
|
||||
export function render(dom, data) {
|
||||
// first, we collect static data from the dom
|
||||
for (const extract of extractors) {
|
||||
// console.warn('Running extractor: ', extract);
|
||||
console.warn('Running extractor...');
|
||||
extract(dom, data);
|
||||
}
|
||||
// secondly we use it to transform parts of the dom
|
||||
for (const transform of transforms) {
|
||||
console.warn('Running transform...');
|
||||
// console.warn('Running transform: ', transform);
|
||||
transform(dom, data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user