Skip to content

Commit

Permalink
Merge pull request #2888 from gdg-x/dependabot/npm_and_yarn/marked-9.0.3
Browse files Browse the repository at this point in the history
Bump marked from 5.1.0 to 9.0.3
  • Loading branch information
abraham authored Oct 4, 2023
2 parents 624a2fe + a0477a0 commit 55451d0
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 12 deletions.
46 changes: 38 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"@vaadin/router": "^1.7.5",
"firebase": "^10.4.0",
"lit": "^2.8.0",
"marked": "^5.1.0",
"marked": "^9.0.3",
"marked-gfm-heading-id": "^3.1.0",
"pwa-helpers": "^0.9.1",
"register-service-worker": "^1.7.2",
"web-vitals": "^3.5.0"
Expand Down
5 changes: 2 additions & 3 deletions src/components/markdown/base.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { html } from 'lit';
import { property } from 'lit/decorators.js';
import { marked } from 'marked';
import { gfmHeadingId } from 'marked-gfm-heading-id';
import { hasUnsupportedTags, unsupportedHtmlTags } from '../../utils/markdown';
import { ThemedElement } from '../themed-element';

marked.setOptions({
headerIds: true,
});
marked.use(gfmHeadingId());

export class Markdown extends ThemedElement {
static override get styles() {
Expand Down

0 comments on commit 55451d0

Please sign in to comment.