Vincent Prouillet
d1154d236f
Comment out failing test while its getting fixed in Tera
5 years ago
Vincent Prouillet
1e2dd9ce03
Update tera to v1 alpha
5 years ago
Nicolas Pochet
b65979fac7
Render the theme template files if present
* Change the behavior of the template rendering:
* Check if the template bare name is present
* Check if the template is part of a theme
* Fallback to defaults
* Change the behavior of the shortcode rendering:
* Call the template rendering function
* Prepend `__zola_builtins/` to most of the default elements in `ZOLA_TERA`
* Add a test to verify the presence and content of a `404.html` page
from a theme's template
5 years ago
Peng Guanwen
5ab3466e2b
Doc improvements
5 years ago
Vincent Prouillet
5caf24f06c
Remove error-chain
Closes #576
5 years ago
Vincent Prouillet
69fb399726
Add failing shortcode body split test
5 years ago
Peng Guanwen
1dbd8874c0
derive Debug for HeaderIndex
5 years ago
Peng Guanwen
80786a2fbb
Revert accidentally change
5 years ago
Peng Guanwen
c027cd97d6
Footnote is now supported in headers
This fixes #569 .
`markdown_to_html` is heavily refactored, header-related things is
handled in a second pass.
5 years ago
toidiu
09f691fa47
add id to continue reading p tag ( #577 )
* add id to continue reading p tag
5 years ago
Peng Guanwen
7130616f63
Minor fixes
5 years ago
Peng Guanwen
972aab1ac4
Add emphasis, strong and code support in header
5 years ago
Peng Guanwen
774514f4d4
refactor markdown_to_html
this commit contains two refactors:
- extract custom link transformations into a function.
- separate some trivial markup generation.
5 years ago
Vincent Prouillet
b3004c69ef
Fix broken taxonomies pagination
Closes #533
6 years ago
Shotaro Yamada
692103bff4
Remove redundant clone
6 years ago
Vincent Prouillet
e2c3bb2ce2
Fix shortcodes <-> markdown indentation
6 years ago
Vincent Prouillet
7af314c61e
Update deps + fmt
6 years ago
Vincent Prouillet
56af4ca7f9
Add page_template to sections
To override all child pages
Closes #397
Tests from PR #434
6 years ago
Vincent Prouillet
b7ce4e59fb
rustfmt
6 years ago
Jonathan Watt
f1b6f3082e
Remove unmatchable rules from render_shortcodes
6 years ago
Vincent Prouillet
f84ae7c93b
Rename all occurrences of gutenberg to zola in code
6 years ago
Michael Plotke
4db629a060
prevent html tags from appearing in the toc
6 years ago
Vincent Prouillet
7ecdc47b91
Remove line trimming for shortcode bodies
Can't remember why it was doing that even
with the comment and the test added in the
commit still pass so...
Fix #462
6 years ago
Jonathan Watt
324211159e
Fix content parser's 'text' rule to use the correct production
6 years ago
Vincent Prouillet
0b0b4a86db
Update pest for shortcode parser
6 years ago
Vincent Prouillet
ee3f4dc511
Update to syntect 3
6 years ago
Vincent Prouillet
cdcebaea26
Cleanup of slotmap impl
Fix #205
6 years ago
Vincent Prouillet
396d237673
Use Tera render_with_borrowed
6 years ago
Christian Friedrich Coors
85529186e4
Fix some clippy warnings
6 years ago
Vincent Prouillet
f100d956c6
Fix incorrect default for highlight_code of Config
6 years ago
Vincent Prouillet
10c7aa0a6a
No replacein markdown rendering
Fix #430
6 years ago
Vincent Prouillet
4571b067ea
Fix ignored shortcode swallowing whitespace
Fix #383
6 years ago
Vincent Prouillet
b4158921dd
Fix email links being checked by link checker
Closes #403
6 years ago
C Jones
dabc614fb3
Change highlighting to not include duplicated background colors
6 years ago
Vincent Prouillet
38b30eb144
Update deps and fix deprecrations
6 years ago
Thomas Hurst
2a53955696
Fix rendering benchmarks.
6 years ago
Thomas Hurst
68690a2cf1
Add a test for summary handling in Markdown rendering.
6 years ago
Thomas Hurst
c53c403790
Update rendering tests
6 years ago
Thomas Hurst
5f1f9efe7a
Derive debug for markdown::Rendered
6 years ago
Thomas Hurst
f2f3bed080
Markdown parsing: prefer Borrowed over Owned where possible
As mentioned in #376
6 years ago
Thomas Hurst
c069bfdafa
Rework summary handling.
Push summary handling into Markdown parsing, identifying the presence
of one by giving its length in the rendered markup.
Hopefully a better fix for #376 .
6 years ago
Vincent Prouillet
e0291cec65
Add Swift, MiniZinc syntax and update the rest
Also fix tests
Close #367, #372
6 years ago
Nathan Ringo
9df5da4697
Fixes bug with extra syntaxes in non-root section, adds tests.
6 years ago
Nathan Ringo
64fa890aa9
Adds support for loading additional syntaxes via extra_syntaxes.
6 years ago
Vincent Prouillet
84a3193e97
Last fixes
6 years ago
Vincent Prouillet
60a52fd2cc
Some intellij reformatting
6 years ago
Vincent Prouillet
3e48ff24b5
Add an external link checker
Close #115
6 years ago
Vincent Prouillet
735bb38bd7
Update docs for 404 and enable preserve-order of tera
6 years ago
Vincent Prouillet
9e9fe50769
Fix rendering benchmark
6 years ago
Vincent Prouillet
d47ba4aff0
Rebasing + tweaks
6 years ago