구문 강조 포스트 & # 8211은, 그와 소금에 절인 물고기는 차이가 무엇 꿈이없는 사람이되는 경우

축 어적으로 https://www.dazhuanlan.com/2019/08/25/5d623609295dd/


구문 강조는 용어의 종류에 따라 서로 다른 색상과 글꼴, 소스 코드를 표시하는 기능입니다. 이 기능은 프로그래밍 언어 또는 구조 및 구문 오류 모두 시각적 별개 같은 마크 업 언어로 구조화 언어로 작성을 용이하게한다. 강조는 텍스트 자체의 의미에 영향을주지 않습니다; 그것은 단지 인간의 독자를위한 것입니다. 1

GFM 코드 블록

GitHub의 맛을 마크 다운 울타리 코드 블록이 지원됩니다. 스타일을 수정하고 색상 편집을 선택합니다 /_sass/syntax.scss.

#container {
  float: left;
  margin: 0 -240px 0 0;
  width: 100%;
}
.highlight {
  margin: 0;
  padding: 1em;
  font-family: $monospace;
  font-size: $type-size-7;
  line-height: 1.8;
}
<nav class="pagination" role="navigation">
  {% if page.previous %}
    <a href="{{ site.url }}{{ page.previous.url }}" class="btn" title="{{ page.previous.title }}">Previous article</a>
  {% endif %}
  {% if page.next %}
    <a href="{{ site.url }}{{ page.next.url }}" class="btn" title="{{ page.next.title }}">Next article</a>
  {% endif %}
</nav><!-- /.pagination -->

   
   
1
2
3
4
5
6
7
8
<nav class="pagination" role="navigation">
  {% if page.previous %}
    <a href="{{ site.url }}{{ page.previous.url }}" class="btn" title="{{ page.previous.title }}">Previous article</a>
  {% endif %}
  {% if page.next %}
    <a href="{{ site.url }}{{ page.next.url }}" class="btn" title="{{ page.next.title }}">Next article</a>
  {% endif %}
</nav><!-- /.pagination -->
module Jekyll
  class TagIndex < Page
    def initialize(site, base, dir, tag)
      @site = site
      @base = base
      @dir = dir
      @name = 'index.html'
      self.process(@name)
      self.read_yaml(File.join(base, '_layouts'), 'tag_index.html')
      self.data['tag'] = tag
      tag_title_prefix = site.config['tag_title_prefix'] || 'Tagged: '
      tag_title_suffix = site.config['tag_title_suffix'] || '&#8211;'
      self.data['title'] = "#{tag_title_prefix}#{tag}"
      self.data['description'] = "An archive of posts tagged #{tag}."
    end
  end
end

목록에서 코드 블록

들여 쓰기 문제. 코드 블록의 들여 쓰기는 목록 항목 마커 후 첫번째 비 공백 문자 (예를 들어,에 정렬해야합니다 1.). 일반적으로이 대신 4의 3 공간 들여 쓰기를 의미합니다.

  1. 1 단계 마십시오.
  2. 이제이 작업을 수행 :

    def print_hi(name)
      puts "Hi, #{name}"
    end
    print_hi('Tom')
    #=> prints 'Hi, Tom' to STDOUT.
    
  3. 지금 당신은이 작업을 수행 할 수 있습니다.

GitHub의 요점 퍼가기

요지의 예는 아래에 삽입.

추천

출처www.cnblogs.com/petewell/p/11408087.html