Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

마크다운 렌더러 라이브러리 적용 #37

Merged
merged 8 commits into from Aug 26, 2019
Merged

Commits on Aug 22, 2019

  1. BaseFormatter 클래스 생성

    1. FormatterA, FormatterB, FormatterC 클래스를 동적으로 생성하기 위해
    Post 클래스에 format이 FormatterA와 같을 경우 Formatter의 text를
    반환하도록 작성하였으나, Formatter를 여러개 사용하다가 하나를 고를
    예정이기 때문에 format을 추가할 때마다 Post 모델을 손봐야 했음.
    따라서 Post 모델에 영향을 주지 않고 포맷을 추가하는 방식으로 구현.
    
    2. View 단에 BaseFormatter, FormatterA를 import 시켰고 post_list에
    formatter로 넘겨주었음
    love-adela committed Aug 22, 2019
    Configuration menu
    Copy the full SHA
    1031a57 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2019

  1. Configuration menu
    Copy the full SHA
    2d1c4cd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    236169d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    57ecc12 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2019

  1. autoescape 문제 해결

    love-adela committed Aug 24, 2019
    2 Configuration menu
    Copy the full SHA
    015d54c View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2019

  1. BaseFormatter를 상속한 Formatter 생성하여 라이브러리 적용.

    라이브러리는 Misaka, Hoedown, Mistune를 선정하였음.
    
    * [Misaka](https://misaka.61924.nl/#)
      - Sundown Python 바인딩. Sundown은 현재 deprected.
      - 코드 하이라이팅 기능 있음
    
    * [python-hoedown](https://github.com/hhatto/python-hoedow) 라이브러리
      - Deprected Sundown 라이브러리를 포크한 Python
    바인딩(Hoedown)
      - Misaka 라이브러리의 기능을 가지고 있음
      - Pypy compatible
      - Footnote 기능 있음
    
    * [Mistune](https://mistune.readthedocs.io/en/latest/)
      - Python-Markdown 라이브러리보다 4배 빠르다고 함
        - lepture/mistune#1
      - 최신 라이브러리. 2018-10-11에 Version 0.8.4 release
      - Full featured. autolink, strikethrough, table, fenced code, footnotes 지원
    love-adela committed Aug 25, 2019
    Configuration menu
    Copy the full SHA
    4cf6878 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    28c5217 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3fd83a5 View commit details
    Browse the repository at this point in the history