-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add nodes/marks passing to resolveFn, update demo and README (#168
) Signed-off-by: Edvinas Jurele <[email protected]> Co-authored-by: Edoardo Sandon <[email protected]>
- Loading branch information
1 parent
1c6e9b3
commit bb07726
Showing
7 changed files
with
161 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
type HeadingTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6"; | ||
export type Props = { | ||
as: HeadingTag; | ||
text: string; | ||
}; | ||
const { as: Element = "h1", text, ...props } = Astro.props; | ||
--- | ||
|
||
<Element id={props.id} {...props}> | ||
{text} | ||
</Element> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.