6543
54e9ee37a7
format with gofumpt ( #18184 )
...
* gofumpt -w -l .
* gofumpt -w -l -extra .
* Add linter
* manual fix
* change make fmt
3 years ago
Jelle Hulter
bbd30787d3
Updated Chroma to v0.10.0 ( #18270 )
3 years ago
zeripath
623d2dd411
Prevent panic in Org mode HighlightCodeBlock ( #17140 )
...
When rendering source in org mode there is a mistake in the highlight code that
causes a panic.
This PR fixes this.
Fix #17139
Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago
Lunny Xiao
9d99f6ab19
Refactor renders ( #15175 )
...
* Refactor renders
* Some performance optimization
* Fix comment
* Transform reader
* Fix csv test
* Fix test
* Fix tests
* Improve optimaziation
* Fix test
* Fix test
* Detect file encoding with reader
* Improve optimaziation
* reduce memory usage
* improve code
* fix build
* Fix test
* Fix for go1.15
* Fix render
* Fix comment
* Fix lint
* Fix test
* Don't use NormalEOF when unnecessary
* revert change on util.go
* Apply suggestions from code review
Co-authored-by: zeripath <art27@cantab.net>
* rename function
* Take NormalEOF back
Co-authored-by: zeripath <art27@cantab.net>
4 years ago
zeripath
9fdb4f887b
Update to go-org 1.3.2 ( #12728 )
...
* Update to go-org 1.3.2
Fix #12727
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix unit test
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago
Lauris BH
086a46994a
Rewrite markdown rendering to blackfriday v2 and rewrite orgmode rendering to go-org ( #8560 )
...
* Rewrite markdown rendering to blackfriday v2.0
* Fix style
* Fix go mod with golang 1.13
* Fix blackfriday v2 import
* Inital orgmode renderer migration to go-org
* Vendor go-org dependency
* Ignore errors :/
* Update go-org to latest version
* Update test
* Fix go-org test
* Remove unneeded code
* Fix comments
* Fix markdown test
* Fix blackfriday regression rendering HTML block
5 years ago
Ethan Koenig
7b104f0cd0
Populate URL field of API commits ( #3546 )
...
* Populate URL field of API commits
* fix orgmode_test
7 years ago
Lunny Xiao
0d80af649a
Add init support of orgmode document type on file view and readme ( #2525 )
...
* add init support of orgmode document type on file view and readme
* fix imports
* fix imports and readmeExist
* fix imports order
* fix format
* remove unnecessary convert
7 years ago