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
Commits on Aug 22, 2019
-
1. FormatterA, FormatterB, FormatterC 클래스를 동적으로 생성하기 위해 Post 클래스에 format이 FormatterA와 같을 경우 Formatter의 text를 반환하도록 작성하였으나, Formatter를 여러개 사용하다가 하나를 고를 예정이기 때문에 format을 추가할 때마다 Post 모델을 손봐야 했음. 따라서 Post 모델에 영향을 주지 않고 포맷을 추가하는 방식으로 구현. 2. View 단에 BaseFormatter, FormatterA를 import 시켰고 post_list에 formatter로 넘겨주었음
Configuration menu - View commit details
-
Copy full SHA for 1031a57 - Browse repository at this point
Copy the full SHA 1031a57View commit details
Commits on Aug 23, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 2d1c4cd - Browse repository at this point
Copy the full SHA 2d1c4cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 236169d - Browse repository at this point
Copy the full SHA 236169dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 57ecc12 - Browse repository at this point
Copy the full SHA 57ecc12View commit details
Commits on Aug 24, 2019
-
2
Configuration menu - View commit details
-
Copy full SHA for 015d54c - Browse repository at this point
Copy the full SHA 015d54cView commit details
Commits on Aug 25, 2019
-
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 지원
Configuration menu - View commit details
-
Copy full SHA for 4cf6878 - Browse repository at this point
Copy the full SHA 4cf6878View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28c5217 - Browse repository at this point
Copy the full SHA 28c5217View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fd83a5 - Browse repository at this point
Copy the full SHA 3fd83a5View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.