{"id":15046831,"url":"https://github.com/germanmtzmx/prism-markdown-element","last_synced_at":"2025-07-24T22:35:03.019Z","repository":{"id":32916915,"uuid":"146139737","full_name":"GermanMtzmx/prism-markdown-element","owner":"GermanMtzmx","description":"A LitElement that renders markdown with syntax highlight support","archived":false,"fork":false,"pushed_at":"2023-04-29T05:46:36.000Z","size":67,"stargazers_count":8,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-24T20:39:23.849Z","etag":null,"topics":["commonmark","litelement","markdown","prismjs","webcomponent"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GermanMtzmx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-26T00:38:21.000Z","updated_at":"2021-08-18T17:59:20.000Z","dependencies_parsed_at":"2025-02-13T06:43:57.170Z","dependency_job_id":null,"html_url":"https://github.com/GermanMtzmx/prism-markdown-element","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/GermanMtzmx/prism-markdown-element","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GermanMtzmx%2Fprism-markdown-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GermanMtzmx%2Fprism-markdown-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GermanMtzmx%2Fprism-markdown-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GermanMtzmx%2Fprism-markdown-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GermanMtzmx","download_url":"https://codeload.github.com/GermanMtzmx/prism-markdown-element/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GermanMtzmx%2Fprism-markdown-element/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266913751,"owners_count":24005584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["commonmark","litelement","markdown","prismjs","webcomponent"],"created_at":"2024-09-24T20:53:38.131Z","updated_at":"2025-07-24T22:35:02.961Z","avatar_url":"https://github.com/GermanMtzmx.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \\\u003cprism-markdown-element\\\u003e\n\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/prism-markdown-element)\n\n**prism-markdown-element** is `LitElement` component inspired from [markdown-element](https://github.com/intcreator/markdown-element) but with extra sugar properties\n\nIt allows render markdown to html with the help of `prismjs` and `commonmark` libraries\n\n**Install**\n\n ```shell\nnpm i prism-markdown-element\n ```\n\n **import it**\n\n ```js\nimport 'prism-markdown-element/prism-markdown-element.js';\n ```\n\n## Features\n* Support highlight code syntax\n* Support the default themes from `prismjs`\n* Support custom theme from any url or path (should be a style link and a prismjs theme)\n\n## Properties\n\n* **mdsrc** markdown source url\n* **markdown** markdown text (string)\n* **theme** any `prismjs` theme ('coy', 'dark', 'funky', 'okaidia','solarizedlight', 'tomorrow', 'twilight')\n* **customtheme** custom theme url (should be a prismjs css )\n\n## Usage\n\n**No theme (prism as default) and remote markdown**\n\n```html\n\u003cprism-markdown-element\nmdsrc=\"https://gist.githubusercontent.com/GermanMtzmx/3855ed67c331bad39d2a625a597a83d5/raw/92399a9fd8b29ec7b750c111a45f0cf6eb532e86/testingMethodsInsideNestedDomIf.md\"\u003e\n\u003c/prism-markdown-element\u003e\n```\n\n**customtheme example**\n\n``` html\n\u003cprism-markdown-element\n  customtheme=\"https://raw.githubusercontent.com/PrismJS/prism-themes/master/themes/prism-ghcolors.css\"\n  mdsrc=\"https://gist.githubusercontent.com/GermanMtzmx/3855ed67c331bad39d2a625a597a83d5/raw/92399a9fd8b29ec7b750c111a45f0cf6eb532e86/testingMethodsInsideNestedDomIf.md\"\u003e\n\u003c/prism-markdown-element\u003e\n```\n\n**markdown string and prismtheme**\n\n```html\n\u003cprism-markdown-element\n  theme=\"coy\"\n  markdown=\" # Hello prism markdown element\"\n  \u003e\n\u003c/prism-markdown-element\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgermanmtzmx%2Fprism-markdown-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgermanmtzmx%2Fprism-markdown-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgermanmtzmx%2Fprism-markdown-element/lists"}