{"id":16240164,"url":"https://github.com/loup-brun/markthat.js","last_synced_at":"2026-05-02T04:34:25.789Z","repository":{"id":84685675,"uuid":"269724216","full_name":"loup-brun/markThat.js","owner":"loup-brun","description":"A dumb little script to markThat(text).","archived":false,"fork":false,"pushed_at":"2020-06-07T22:59:13.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-08T09:34:22.332Z","etag":null,"topics":["mark","markdown","markup"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loup-brun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-06-05T17:44:26.000Z","updated_at":"2020-06-08T00:42:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"4141f6df-5d32-4ca1-8a39-fc346eb193c1","html_url":"https://github.com/loup-brun/markThat.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/loup-brun/markThat.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loup-brun%2FmarkThat.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loup-brun%2FmarkThat.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loup-brun%2FmarkThat.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loup-brun%2FmarkThat.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loup-brun","download_url":"https://codeload.github.com/loup-brun/markThat.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loup-brun%2FmarkThat.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32523426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"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":["mark","markdown","markup"],"created_at":"2024-10-10T13:47:28.340Z","updated_at":"2026-05-02T04:34:25.774Z","avatar_url":"https://github.com/loup-brun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markThat.js\n\nA mini script to `markThat(==text==)`.\n\n## What’s this?\n\nSo you want to use the `==` fences for declaring the [HTML `\u003cmark\u003e` element](https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-mark-element) in Markdown, but your rendering engine wouldn’t support it?\nThis little guy’s got you covered.\n\n## Install\n\nLoad the script on the page.\nSupports both AMD and the browser.\n\n```html\n\u003cscript src=\"/path/to/markThat.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n### Method 1: String\n\n```js\nvar text = 'Some HTML text that I want to ==mark==.';\nvar article = document.querySelector('article');\n\n// Update the DOM yourself\narticle.innerHTML = markThat(text); // 'Some HTML text that I want to \u003cmark\u003emark\u003c/mark\u003e.'\n```\n\n### Method 2: DOM element\n\nAlternatively, just specify a DOM element and let `markThat` do the trick:\n\n```js\nvar article = document.querySelector('article');\n\nmarkThat(article); // \u003carticle\u003e has been updated\n```\n\n## License\n\n[WTFPL](http://www.wtfpl.net/txt/copying/)\n\nUse at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floup-brun%2Fmarkthat.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floup-brun%2Fmarkthat.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floup-brun%2Fmarkthat.js/lists"}