Skip to content
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 hir #318

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
9b33219
feat: Introduce higher intermediate representation (HIR) for HTML int…
kokoISnoTarget Apr 14, 2024
0fa04a1
feat: Implement inrepreter to use hir
kokoISnoTarget Apr 20, 2024
108091a
fix: add void tags so it builds an correct tree for img tags...
kokoISnoTarget Apr 20, 2024
4550dbe
add table implementation
kokoISnoTarget Apr 21, 2024
29318c5
feat: Add with_span_color method to InheritedState in Ast.rs file.
kokoISnoTarget Apr 22, 2024
55b082f
refactor: Update TextOptions struct to include link field.
kokoISnoTarget Apr 22, 2024
b1db09e
add: align + fmt
kokoISnoTarget Apr 24, 2024
6124547
add: lists
kokoISnoTarget Apr 25, 2024
a656be3
fix: #315
kokoISnoTarget Apr 25, 2024
975d1ed
fix: Update error messages in ast.rs for table elements
kokoISnoTarget Apr 25, 2024
07b6d5b
feat: refactor Ast initialization, update Hir struct
kokoISnoTarget Apr 29, 2024
f7fe36e
refactor: Impl Details + Simplify node creation in Hir structs.
kokoISnoTarget May 1, 2024
c47e3a3
Impl Image/Source/Picture
kokoISnoTarget May 2, 2024
d5eaca4
fixing a bunch of small issues
kokoISnoTarget May 3, 2024
e7481f1
cleanup
kokoISnoTarget May 4, 2024
00f89a7
refactor + perf
kokoISnoTarget May 9, 2024
773faad
fmt + clippy + moving the ast to parking_lot::Mutex instead of std
kokoISnoTarget May 9, 2024
c1890af
Merge branch 'main' into add-hir
kokoISnoTarget May 9, 2024
370757e
The image blob changed...
kokoISnoTarget May 9, 2024
50194a0
adding rows + fmt
kokoISnoTarget May 10, 2024
28725e1
Small perf improvements
kokoISnoTarget May 14, 2024
915fa9b
Small interface change
kokoISnoTarget May 16, 2024
7ea53e9
fmt
kokoISnoTarget May 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/image/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ impl Image {

pub fn from_src(
src: String,
file_path: PathBuf,
hidpi_scale: f32,
image_callback: Box<dyn ImageCallback + Send>,
) -> anyhow::Result<Image> {
Expand All @@ -228,7 +227,7 @@ impl Image {

let mut src_path = PathBuf::from(&src);
if src_path.is_relative() {
if let Some(parent_dir) = file_path.parent() {
if let Ok(parent_dir) = std::env::current_dir() {
src_path = parent_dir.join(src_path.strip_prefix("./").unwrap_or(&src_path));
}
}
Expand Down
Loading