c9d097f646
Missing control characters
2024-10-30 22:00:28 -03:00
a7386e0c38
Display => AsRef<str>
2024-10-30 20:28:42 -03:00
59c6688c6d
Less restrictive strip_to_attr_name
2024-10-30 19:53:02 -03:00
8d721fb430
Undo autoformatting change
2024-10-29 18:31:39 -03:00
eaac99f70f
Hacky fix to prevent XSS
2024-10-28 22:52:29 -03:00
2c60c64181
Allow splices in attribute names
...
Closes #444
2024-09-28 11:07:52 -03:00
Chris Wong
0254fe1f81
Fix syntax highlighting for no_run
blocks ( #439 )
2024-08-22 05:43:22 +00:00
Chris Wong
a3c8ea3b4d
Switch to use Comrak for syntax highlighting ( #438 )
2024-08-22 12:58:41 +10:00
Chris Wong
f0d11ce147
Update to Comrak 0.27 ( #437 )
2024-08-21 14:33:40 +00:00
Rob Ede
ddc9b4cb2a
Implement MessageBody for Markup ( #430 )
2024-06-16 12:27:33 +00:00
Britton Robitzsch
d46ce8c23a
feat: Add support for Submillisecond web framework ( #419 )
...
* feat: Add support for Submillisecond web framework
Adds support for Submillisecond, a Lunatic web framework
* fix: Add submillisecond as doctest feature flag
- adds submillisecond as a feature flag for maud for doctests
* fix: Update formatting for submillisecond
- fix formatting to match rustfmt for submillisecond_support
* Add missing line break
---------
Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2024-06-16 11:44:17 +00:00
puetzp
1a2fefe4e5
Update documentation regarding toggles ( #389 ) ( #410 )
2024-06-16 21:15:27 +10:00
Chris Wong
16f2d2e017
Update docs dependencies
2024-06-03 20:54:00 +10:00
Chris Wong
616af0f4c0
Reduce duplication in Cargo.toml
( #426 )
2024-03-10 13:52:51 +00:00
Chris Wong
9bba7d6390
Fix unused imports ( #425 )
2024-03-10 13:43:23 +00:00
Chris Wong
6e50e675b6
Release 0.26.0 ( #417 )
2024-01-15 23:21:00 +11:00
Chris Wong
26a9d7484d
Disallow int literals in attribute values ( #415 )
2024-01-15 00:45:49 +11:00
thatguydoru
320add87a1
Warp Integration: Yet another web framework support ( #404 )
...
* Add warp integration.
* Add warp to docs
* Update changelog
* Please the mighty rustfmt \o/
* Enable warp feature in doctest
---------
Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2024-01-04 15:39:21 +11:00
Teodor Källman
b3a98c98d5
Parse many literals along side idents in names ( #398 )
...
* Parse many literals along side idents in names
* Accept ints as literals
We will not accept floats because `123.123` is a float literal,
but `123 .123` is a int literal followed by a class called `123`.
This could be confusing so it will not be accepted.
Ints can have leading zeros, like `0123`, but this is not guarranteed by
the rust compiler to always work, which could cause future errors.
An example would be truncating `001` to `1`.
* Limit accepted literals using existing function
* Update error output for non-string-literal
* Test output of ints with specified type
This outputs exactly what is written, which is the obvious behaviour
* Use nightly version to generate output
Previous verison was not using nightly, causing errors in the automated
test that are using nightly
* Replace "byte_string" with "raw_string" in test
---------
Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2024-01-04 15:32:25 +11:00
Paul Jones
0de60b0c86
Update rocket support to v0.5 ( #406 )
...
* update rocket support to v0.5
* added rocket upgrade to CHANGELOG.md
* fix documentation code for rocket v0.5
---------
Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2023-12-30 09:10:30 +00:00
Vidhan Bhatt
d3b871189f
Support axum
v0.7 through axum-core
v0.4 and http
v1 ( #401 )
...
* chore: bump `axum-core` for use with new `axum` 0.7 release
* chore: bump doctest axum too
* chore: update changelog
* chore: fix changelog
* fix: doctest
* fix: import right resp type
* fix: bump http as well
* fix: doctest
* Update CHANGELOG.md
2023-12-30 22:06:47 +13:00
Soso
8318963db7
Upgrade to syn
2.0.0 ( #400 )
...
* Upgrade syn
* Disable proc-macro-error syn 1.0.0 dependency
* Update docs lockfile
2023-11-26 15:56:12 +11:00
Teodor Källman
8c47208568
Accept literals in attribute names ( #396 )
...
* Accept literals in attribute names
* Accept literals in attribute names
* Propper handling of literals in name_to_string()
2023-11-14 15:05:48 +11:00
Chris Wong
d1cfde53b6
Set resolver explicitly in workspace config ( #391 )
...
https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
2023-09-27 13:40:38 +10:00
Chris Wong
bfc3a6d0d5
Fix Clippy needless-raw-string-hashes warning ( #390 )
2023-09-27 03:33:22 +00:00
Chris Wong
811c7402ff
Fix Clippy redundant-guards warning ( #387 )
2023-08-02 14:11:10 +00:00
Chris Wong
0d4d194e62
Update docs dependencies
2023-07-02 12:54:57 +10:00
Matt Fellenz
79259ab426
Fix #382 ( #383 )
...
* Properly group splice expressions
* Add test for fix
2023-06-11 19:58:43 +10:00
Imbolc
b7e5768d44
Impl Render for Arc<Render> ( #380 )
...
* Arc
* Changelog
2023-05-28 21:38:14 +10:00
Imbolc
1ab01cca27
Remove AsRef<str>
restriction from structs ( #377 )
2023-05-28 21:11:37 +10:00
Chris Wong
ca7b93c790
Update docs to Rust 2021 ( #376 )
2023-04-16 07:11:06 +00:00
Chris Wong
bf44196a61
Release 0.25.0 ( #375 )
2023-04-16 16:54:45 +10:00
Imbolc
34b3bc00ce
impl Default for PreEscaped ( #371 )
...
* impl Default for PreEscaped
* Simplify assertion
* Update CHANGELOG.md
---------
Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2023-04-16 05:27:45 +00:00
Chris Wong
0d1bc320d3
Document that std::fmt::Display is used first
...
Closes #363
2023-04-16 15:18:36 +10:00
Daniel Oliveira
7233cda35e
Add axum to the list of frameworks in docs ( #370 )
2023-04-04 22:51:57 +10:00
Chris Wong
c42153f20c
Change #![feature(once_cell)]
to lazy_cell
( #372 )
...
For rust-lang/rust#105587
2023-04-01 09:39:04 +00:00
Chris Wong
cdb9d3a48d
Move optional attribute documentation ( #369 )
2023-02-13 01:34:34 +00:00
Chris Wong
4f14db7415
Switch documentation to one-sentence-per-line ( #368 )
2023-02-12 11:19:56 +00:00
David Pedersen
daa43549ee
Bump axum-core to 0.3.0 ( #361 )
...
* Bump axum-core to 0.3.0
This is required for axum 0.6 support
* Update doctests
* changelog
2023-01-24 22:19:55 +11:00
Simon Ask
6cdf12b427
Render with Display using autoref specialization ( #359 )
2022-12-15 21:39:54 +11:00
Paolo Barbolini
81ace856a4
Bump itoa to v1 ( #358 )
2022-10-30 00:57:54 +11:00
Chris Wong
1fff8123eb
Remove html_debug!
( #357 )
...
It's not documented anywhere, and `cargo expand` does the same thing.
2022-10-27 04:29:04 +00:00
Chris Wong
ce6a9f3bbd
Add git tag -a
to release process ( #356 )
...
The GitHub Releases feature creates lightweight tags, not annotated tags.
2022-09-25 14:24:52 +00:00
Chris Wong
8415003cc5
Release 0.24.0 ( #351 )
...
* Release 0.24.0
* Update Cargo.lock for docs
2022-09-25 23:48:38 +10:00
Chris Wong
c13e1dcc48
Don't symlink the escaper module ( #355 )
...
The symlink doesn't work on Windows, and breaks NixOS builds.
Closes #343
2022-09-18 12:47:39 +00:00
Chris Wong
40dffecd5d
Remove default features from comrak (including clap) ( #354 )
2022-09-18 12:17:54 +00:00
Chris Wong
f3cf24b341
Update documentation dependencies ( #352 )
2022-08-12 13:30:42 +00:00
Chris Wong
7d51e0b04a
Fix typo in changelog
2022-08-12 23:02:28 +10:00
Chris Wong
a43fd53c4a
Add maud::display
( #350 )
2022-08-12 22:48:25 +10:00
Chris Wong
f43d47d135
Use LazyLock ( #346 )
2022-06-20 19:55:37 +08:00