Skip to content

Commit

Permalink
closes #4, includerjs now @worlduniting/includerjs
Browse files Browse the repository at this point in the history
  • Loading branch information
revdavethompson committed Mar 13, 2023
1 parent 74569c2 commit e9e53de
Show file tree
Hide file tree
Showing 4 changed files with 4,046 additions and 926 deletions.
4 changes: 2 additions & 2 deletions lib/convertGfmToHtml.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { unified } from 'unified';
import remarkParse from 'remark-parse';
import remarkHtml from 'remark-html';
import remarkGfm from 'remark-gfm';
import includer from './includer.mjs';
import includerjs from '@worlduniting/includerjs';
import yaml from 'js-yaml';

// Define __dirname for ES module - so we can use it like CommonJS
Expand Down Expand Up @@ -33,7 +33,7 @@ export default function convertGfmToHtml() {
.join('\n\n');

// Process @include statements using the includer module
const processedMarkdown = includer(markdownDocument, { basePath: manuscriptDir });
const processedMarkdown = includerjs(markdownDocument, { basePath: manuscriptDir });

// Convert the markdown document to HTML using Remark
const html = unified()
Expand Down
28 changes: 0 additions & 28 deletions lib/includer.mjs

This file was deleted.

Loading

0 comments on commit e9e53de

Please sign in to comment.