Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Template JS File #17

Open
andrewzaldivar opened this issue Mar 14, 2023 · 1 comment
Open

Create a Template JS File #17

andrewzaldivar opened this issue Mar 14, 2023 · 1 comment

Comments

@andrewzaldivar
Copy link
Collaborator

As mentioned in #16, to improve clarity on how to run the Card Builder, especially when one wants to build a Data Card from a MD file, a template MD and HTML file that runs the script should be created.

@bramzandbelt
Copy link

I'd really appreciate a solution to this issue. Although I was able to build the dist directory with the scripts and styles, I was unable to convert a Data Card from Markdown to HTML, based on the README instructions.

Specifically, putting the code for conversion inside a file New.js and trying to run this as node New.js resulted in the following error

/home/bram/NS/TL/datacardsplaybook/labs/card-builder/dist/New.js:2
CardBuilder.markdownToHTMLCard(markdown);
^

ReferenceError: CardBuilder is not defined
    at Object.<anonymous> (/home/bram/NS/TL/datacardsplaybook/labs/card-builder/dist/New.js:2:1)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
    at internal/main/run_main_module.js:17:47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants