{"id":15663054,"url":"https://github.com/bubkoo/hexo-filter-fenced-code","last_synced_at":"2025-05-06T02:07:07.599Z","repository":{"id":30760099,"uuid":"34316731","full_name":"bubkoo/hexo-filter-fenced-code","owner":"bubkoo","description":"🎨 Extend syntax for the native fenced code block.","archived":false,"fork":false,"pushed_at":"2022-02-22T18:54:48.000Z","size":19,"stargazers_count":17,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T02:07:02.391Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://bubkoo.com/demo/markdown-extra-syntax-for-hexo/","language":"JavaScript","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/bubkoo.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}},"created_at":"2015-04-21T09:14:43.000Z","updated_at":"2025-04-18T02:27:31.000Z","dependencies_parsed_at":"2022-09-02T05:23:46.597Z","dependency_job_id":null,"html_url":"https://github.com/bubkoo/hexo-filter-fenced-code","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/bubkoo%2Fhexo-filter-fenced-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubkoo%2Fhexo-filter-fenced-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubkoo%2Fhexo-filter-fenced-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubkoo%2Fhexo-filter-fenced-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bubkoo","download_url":"https://codeload.github.com/bubkoo/hexo-filter-fenced-code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252607036,"owners_count":21775415,"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-10-03T13:35:21.329Z","updated_at":"2025-05-06T02:07:07.581Z","avatar_url":"https://github.com/bubkoo.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# hexo-filter-fenced-code\n\n[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/bubkoo/hexo-filter-fenced-code/blob/master/LICENSE)\n\n[![npm:](https://img.shields.io/npm/v/hexo-filter-fenced-code.svg?style=flat-square)](https://www.npmjs.com/packages/hexo-filter-fenced-code)\n[![Package Quality](http://npm.packagequality.com/shield/hexo-filter-fenced-code.svg)](http://packagequality.com/#?package=hexo-filter-fenced-code)\n\n\u003e Extend syntax for the native fenced code block.\n\nFeature:\n\n- Extend syntax for the native fenced code block.\n- Use tag-plugins as fenced code block.\n\n## Markdown Extra Syntax\n\n### The Native Fenced Code Block\n\n    ```javascript\n    var foo = \"bar\";\n    ```\n\n### Highlight and Insert Code\n\n    ```javascript+\n    var foo = \"bar\";\n    ```\n\nor\n\n    ````javascript\n    var foo = \"bar\";\n    ````\n\n\n\n\nThe code will be inserted as a `script` block:\n\n```html\n\u003cscript\u003e\nvar foo = \"bar\";\n\u003c/script\u003e\n```\n\n### Just Insert Code\n\n    ```javascript-\n    var foo = \"bar\";\n    ```\n\nor\n\n    `````javascript\n    var foo = \"bar\";\n    `````\n\n\n**Note: Only JavaScript, CSS and HTML code can be inserted into a post. This feature is handily for building a quick demo.**\n\n\n## Tag Plugins' Syntax Sugar\n\nThe native tag plugin looks like this:\n\n- block\n\n  ```swig\n  {% tagname [option1] [option2] ... %}\n  content\n  {% endblockquote %}\n  ```\n\n- inline\n\n  ```swig\n  {% tagname [option1] [option2] ... %}\n  ```\n  \nUse the syntax sugar as follow:\n\n- block\n\n        ```tagname [option1] [option2] ... \n        content\n        ```\n\n\n- inline\n\n        ```tagname [option1] [option2] ...\n        ```\n\n## Related\n\n- [hexo-toc](https://github.com/bubkoo/hexo-toc) Insert a markdown TOC before posts be rendered.\n- [hexo-filter-flowchart](https://github.com/bubkoo/hexo-filter-flowchart) Generate flowchart diagrams for Hexo.\n- [hexo-filter-sequence](https://github.com/bubkoo/hexo-filter-sequence) Generate UML sequence diagrams for Hexo.\n- [hexo-filter-sub](https://github.com/bubkoo/hexo-filter-sub) Generate subscript (`\u003csub\u003e`) tag for Hexo.\n- [hexo-filter-sup](https://github.com/bubkoo/hexo-filter-sup) Generate superscript (`\u003csup\u003e`) tag for Hexo.\n- [hexo-theme-formula](https://github.com/bubkoo/hexo-theme-formula) Hexo theme base on jade and less.\n\n## Contributing\n\nPull requests and stars are highly welcome.\n\nFor bugs and feature requests, please [create an issue](https://github.com/bubkoo/hexo-filter-fenced-code/issues/new).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbubkoo%2Fhexo-filter-fenced-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbubkoo%2Fhexo-filter-fenced-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbubkoo%2Fhexo-filter-fenced-code/lists"}