Skip to content

Is it possible to add own language descriptions? #259

Closed Answered by josor001
josor001 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi guys,

so I finally found the drive to give my issue another try. After tinkering for a couple of hours I was able to find the solution which is painfully easy (as almost always for programming issues :D).

So basically the issue was twofold.

In order to use the import('hljs-lemma/src/languages/lemma') statement to import my language definition, I needed to provide a typescript module definition. I believe we currently have the same issue for the lineNumbersLoader: () => import('highlightjs-line-numbers.js'), statement in every stackblitz #234 .
To fix this, it is necessary to either provide a d.ts file that declares the module inside the npm package or, if you do not have control over t…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@josor001
Comment options

@josor001
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by josor001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants