🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

hexo-shortcodes

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-shortcodes

Hexo shortcodes helper. Various shortcodes for hexo, adapted from jekyll.

latest
Source
npmnpm
Version
1.2.4
Version published
Maintainers
0
Created
Source

hexo-shortcodes

Hexo shortcodes helper. Various shortcodes for hexo, adapted from jekyll. Various hexo shortcode tags.

GitHub | Demo and docs

Installation

  • Firsly, remove old original tag renderer. Because this plugin already have all default tag (vimeo, youtube, gist, codeblock)
npm un hexo-tag-embed
  • Install hexo-shortcodes

production

npm i hexo-shortcodes

latest changes, replace COMMIT_HASH with latest commit hash. see pre-release commit history

npm i hexo-shortcodes@https://github.com/dimaslanjaka/hexo-shortcodes/raw/COMMIT_HASH/pre-release/release/hexo-shortcodes.tgz
# or
yarn add hexo-shortcodes@https://github.com/dimaslanjaka/hexo-shortcodes/raw/COMMIT_HASH/pre-release/release/hexo-shortcodes.tgz

shortcodes list

shortcodedescription
hexo codepen shortcodeembed codepen
hexo gist shortcodeembed gist
hexo jsfiddle shortcodeembed jsfiddle
hexo githubCard shortcodeembed github card
hexo rssreader shortcodeembed rss feed
hexo github shortcodeembed any source files from github.com
hexo npmrunkit shortcodeembed any javascript codes to website
hexo include_file shortcodeinclude any files relative to hexo.config.source_dir, hexo.config.code_dir, or reference file it self
videosdefault hexo embedding videos

Config

define renderer returns by setting _config.yml

hexo-shortcodes:
  # true = return raw markdown format instead html
  raw: false

Language Test

Changelog

read more at https://github.com/dimaslanjaka/hexo-shortcodes/commits/pre-release (chore,feat,fix sections)

1.2.4

  • feat: update hexo-tag-embed from fork

1.2.3

  • fix: hexo@6 context.extend.highlight undefined TypeError: Cannot read properties of undefined (reading 'query')

1.2.2

  • include_file: fix typeof hexo undefined

1.2.1

  • include_file: add include file shortcode tag
  • gist: fix failed embed spesific lines

1.2.0

  • gist: change parameters and usages
  • gist: validate id is URL or not

1.1.3

  • rssreader: hotfix get thumbnail from rss item
  • rssreader: fix: validate item['media:group'] is Array

1.1.2

  • gist: fix undefined username

1.1.1

  • fix: invalid git-embed location

Documentations

License

MIT

Keywords

hexo

FAQs

Package last updated on 21 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts