{"id":20513670,"url":"https://github.com/theopencms/the_string_addon","last_synced_at":"2025-03-05T23:14:28.262Z","repository":{"id":71919700,"uuid":"92979554","full_name":"TheOpenCMS/the_string_addon","owner":"TheOpenCMS","description":"Some helper methods for String class","archived":false,"fork":false,"pushed_at":"2017-06-30T19:08:21.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T09:40:00.835Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/TheOpenCMS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2017-05-31T19:07:37.000Z","updated_at":"2017-05-31T19:08:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"650591ea-9c4b-45c5-82d5-591f9afb0337","html_url":"https://github.com/TheOpenCMS/the_string_addon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheOpenCMS%2Fthe_string_addon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheOpenCMS%2Fthe_string_addon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheOpenCMS%2Fthe_string_addon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheOpenCMS%2Fthe_string_addon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheOpenCMS","download_url":"https://codeload.github.com/TheOpenCMS/the_string_addon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242117717,"owners_count":20074438,"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":"2024-11-15T21:12:34.291Z","updated_at":"2025-03-05T23:14:28.253Z","avatar_url":"https://github.com/TheOpenCMS.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"### TheStringAddon\n\n```\n  txt = txt.to_s\n\n  # Sanitize and empty lines process\n  txt = sanitize_for(txt, current_user)\n  txt = txt.empty_p2br\n\n  # MarkDown + Code Hightlight\n  txt = ::Markdown2Tags.process(txt)\n  txt = ::ColoredCode.with_pygments(txt)\n\n  # AutoLink\n  al_helper = ::AutoLink.new\n  txt = al_helper.auto_link(txt, sanitize: false, html: { target: :_blank, rel: :nofollow })\n\n  # Protect content of external links\n  txt = txt.add_nofollow_to_links if !current_user.admin?\n  txt = txt.wrap_nofollow_links_with_noindex\n\n  txt.strip\n```\n\n```\n\n##   Hello World\n###  Hello World\n#### Hello World\n\n*ITALIC*\n\n**BOLD**\n\n~~DELETED~~\n\n_UNDERLINE_\n\n==highlighted==\n\n2\u003csup\u003e(nd)\u003csup\u003e\n\n[Текст ссылки](адрес://ссылки.здесь \"Заголовок ссылки\")\n\nfoo_bar_baz\n\n```python\n# more python code\n```\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheopencms%2Fthe_string_addon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheopencms%2Fthe_string_addon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheopencms%2Fthe_string_addon/lists"}