Help us understand the problem. What is going on with this article?

Sublime Text | Markdown Preview Plugin で fontawesome を利用できるようにする

More than 5 years have passed since last update.

Sublime Text | Markdown Preview Plugin で Font-Awesome の Icon を利用できるようにする

概要

Sublime Text の Markdown Preview Plugin で Font-Awesome の Icon を利用できるようにします。

Markdown Preview Plugin のテンプレートカスタマイズ

Sublime Text のメニューの

  • Preferences
  • Package Settings
  • Markdown Preview
  • Setting - User

を選択し、下記のように編集することで任意のテンプレートを利用できます。

{
  "html_template": "/path/to/your/template/markdown_template/template.html"
}

テンプレートを作成し、 Font-Awesome の CSS の Link タグを追加します

/path/to/your/template/markdown_template/template.html
<!doctype html>
<html lang="ja">
<head>
  <meta charset="UTF-8">
  <title>Markdown Preview</title>
  <link rel="stylesheet" href="/path/to/your/css/github.css">
  <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
</head>
<body>
{{ BODY }}
</body>
</html>

Use Font-Awesome Icon

  • マークダウンを下記のように記述します。
# hoge
##  <i class="fa fa-futbol-o" style="font-size:10em;"></i></i> hige
##  <i class="fa fa-slideshare" style="font-size:10em;"></i></i> hage
  • Preview を確認します

Font-Awesome.png

参照

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした