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 experimental formatting to html2ft #193

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

AndrewRPerkins
Copy link

Adds the new experimental formatting to html2ft

<body class="myclass">
  <div style="padding:3px">
    <div>
        Some text
        <input name="me">
        <img src="filename" data="1">
    </div>
  </div>
</body>

will turn into

Body(cls='myclass')(
    Div(style='padding:3px')(
        Div(
            'Some text',
            Input(name='me'),
            Img(src='filename', data='1')
        )
    )
)

Copy link

gitnotebooks bot commented Aug 5, 2024

Found 1 changed notebook. Review the changes at https://gitnotebooks.com/AnswerDotAI/fasthtml/pull/193

@jph00
Copy link
Contributor

jph00 commented Aug 5, 2024

Splendid!

@jph00 jph00 added the enhancement New feature or request label Aug 5, 2024
@jph00 jph00 merged commit 3892b65 into AnswerDotAI:main Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants