Git Product home page Git Product logo

vscode-html-to-elm's People

Contributors

andys8 avatar g7s avatar marksauter avatar rubymaniac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vscode-html-to-elm's Issues

Insignificant white space is retained in conversion

Insignificant white space is retained in conversion which makes it difficult to use for large amounts of HTML as it requires a lot of hand adjustment.

image

I'm using version 0.0.2 and VSCode version information below.

Version 1.12.2
Commit 19222cdc84ce72202478ba1cec5cb557b71163de
Date 2017-05-10T13:20:36.315Z
Shell 1.6.6
Renderer 56.0.2924.87
Node 7.4.0

Invalid elm code produced from source HTML

While playing around with converting the HTML from this medium article I ran across the case where some HTML is not being converted to Elm properly. I haven't been able to experiment yet with whether this is related to the seemingly non-standard t tag, comments, or the self closing <br/> tag or something else but it looks like the br is missing a the following comma.

Test case

<p><t>Bachelor of Awesomeness</t><br/>
	University of Maryland
	<!--<br/><i>Extra info here</i>-->
</p>

Expected:

p []
	[ t []
		[ text "Bachelor of Awesomeness" ]
	, br [] [] 
        , text "University of Maryland" 
	]

Actual:

p []
	[ t []
		[ text "Bachelor of Awesomeness" ]
	, br []
		[] text "University of Maryland" 
	]

Version

Extension version: 0.0.2

VSCode
Version 1.12.2
Commit 19222cdc84ce72202478ba1cec5cb557b71163de
Date 2017-05-10T13:20:36.315Z
Shell 1.6.6
Renderer 56.0.2924.87
Node 7.4.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.