-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add color And \\ulnone #10
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your commit, the code is very clean.
However, I made a few comments on some details.
src/parser.rs
Outdated
ControlWord::Unknown(name) => { | ||
if let Property::Value(key) = property { | ||
match *name { | ||
"\\red" => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\red
\green
and \blue
should be Token
src/document.rs
Outdated
#[cfg(feature="serde_support")] | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[cfg(feature="serde_support")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using #[cfg_attr(feature = "serde_support", derive(Deserialize, Serialize))]
would prevent the code duplication
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx, I got it
Wonderfull, thanks for all the efforts you put in this PR. |
Add color property
Increase judgment on \ ulnone for cancel underline
Add parse_color_table and parse_underline on parser.rs