{"id":26663172,"url":"https://github.com/startpolymer/s-markdown","last_synced_at":"2025-04-11T18:24:28.133Z","repository":{"id":57741590,"uuid":"69090891","full_name":"StartPolymer/s-markdown","owner":"StartPolymer","description":"Fast modular regex-based Markdown parser.","archived":false,"fork":false,"pushed_at":"2017-07-24T14:42:51.000Z","size":2509,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T18:24:23.141Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StartPolymer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-24T08:42:43.000Z","updated_at":"2020-03-07T20:08:05.000Z","dependencies_parsed_at":"2022-09-08T12:20:12.737Z","dependency_job_id":null,"html_url":"https://github.com/StartPolymer/s-markdown","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StartPolymer%2Fs-markdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StartPolymer%2Fs-markdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StartPolymer%2Fs-markdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StartPolymer%2Fs-markdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StartPolymer","download_url":"https://codeload.github.com/StartPolymer/s-markdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248456381,"owners_count":21106607,"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","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":[],"created_at":"2025-03-25T14:20:12.163Z","updated_at":"2025-04-11T18:24:28.113Z","avatar_url":"https://github.com/StartPolymer.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!---\n\nThis README is automatically generated from the comments in these files:\ns-markdown.html\n\nEdit those files, and our readme bot will duplicate them over here!\nEdit this file, and the bot will squash your changes :)\n\nThe bot does some handling of markdown. Please file a bug if it does the wrong\nthing! https://github.com/PolymerLabs/tedium/issues\n\n--\u003e\n\n## \u0026lt;s-markdown\u0026gt;\n\nFast modular regex-based Markdown parser.\n\nInspired by [\u0026lt;marked-element\u0026gt;](https://github.com/PolymerElements/marked-element) and [Slimdown](https://gist.github.com/jbroadway/2836900).\n\n`\u003cs-markdown\u003e` accepts Markdown source, and renders it to a child\nelement with the class `markdown-html`. This child element can be styled\nas you would a normal DOM element. If you do not provide a child element\nwith the `markdown-html` class, the Markdown source will still be rendered,\nbut to a shadow DOM child that cannot be styled.\n\nThe Markdown source can be specified either via the `markdown` attribute:\n\n```html\n\u003cs-markdown markdown=\"`Markdown` is _awesome_!\" rules=\"code em\"\u003e\n  \u003cdiv class=\"markdown-html\"\u003e\u003c/div\u003e\n\u003c/s-markdown\u003e\n```\n\nOr, you can provide it via a `\u003cscript type=\"text/markdown\"\u003e` element child:\n\n```html\n\u003cs-markdown rules=\"a blockquote code del em-strong h hr img ol q ul p\"\u003e\n  \u003cdiv class=\"markdown-html\"\u003e\u003c/div\u003e\n  \u003cscript type=\"text/markdown\"\u003e\n    ## This is an h2 tag\n    ### This is an h3 tag\n\n    ---\n\n    `var inlineCode = 0;`\n\n    *italic text* | _italic text_\n\n    **bold text** | __bold text__\n\n    ***italic bold text*** | ___italic bold text___\n\n    ~~Scratch this.~~\n\n    :\"Quote text\":\n\n    \u003e blockquote\n\n    - item 1\n    - item 2\n    - item 3\n\n    1. item 1\n    2. item 2\n    3. item 3\n\n    [Link](https://www.polymer-project.org)\n\n    ![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png)\n\n    \u003cimg src=\"http://example.com/test_skipping_em_rule_for_line_contain_html_tag.html\"\u003e\n  \u003c/script\u003e\n\u003c/s-markdown\u003e\n```\n\nNote that the `\u003cscript type=\"text/markdown\"\u003e` approach is *static*. Changes to\nthe script content will *not* update the rendered markdown!\n\n### Styling\n\nIf you are using a child with the `markdown-html` class, you can style it\nas you would a regular DOM element:\n\n```css\n.markdown-html p {\n  color: red;\n}\n\n.markdown-html td:first-child {\n  padding-left: 24px;\n}\n```\n\n## License\n\nMIT: [StartPolymer/license](https://github.com/StartPolymer/license)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstartpolymer%2Fs-markdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstartpolymer%2Fs-markdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstartpolymer%2Fs-markdown/lists"}