Skip to content
Open
Changes from all commits
Commits
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
7 changes: 1 addition & 6 deletions src/html_lustre_converter.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@ import javascript_dom_parser.{type HtmlNode, Comment, Element, Text} as parser
///
/// If the source document contains SVGs, we need one more import from lustre/element:
/// ```gleam
/// import lustre/element.{element, text, svg}
/// ```
///
/// If you are only using SVGs, that's all you need to import
/// ```gleam
/// import lustre/element/svg
/// import lustre/element/svg.{svg}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The svg function comes from the other module already. Importing two values with the same name would result in a type error

Suggested change
/// import lustre/element/svg.{svg}
/// import lustre/element/svg

/// ```
///
pub fn convert(html: String) -> String {
Expand Down