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

TypeError: Cannot read properties of undefined (reading 'options') #292

Open
Yangfan2016 opened this issue Jun 13, 2024 · 1 comment
Open

Comments

@Yangfan2016
Copy link

Yangfan2016 commented Jun 13, 2024

image

r.options = this.options;

This is my code

import { marked } from "marked";
import { markedTerminal } from "marked-terminal";

const c = markedTerminal({});
console.log(1111, c);
marked.use(c);
console.log(222);
const d = marked.parse(
  "# Hello \n This is **markdown** printed in the `terminal`"
);
console.log(d);

Env info

"marked": "^13.0.0",
"marked-terminal": "^7.0.0"

node:"16.20.1"
pnpm:"7.33.7"

@sinamathew
Copy link

Could you explain your issue better or rephrase...

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