Coder Social home page Coder Social logo

bryancostanich / fountainsharp Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 4.0 1.22 MB

An F# based Fountain Markdown processor that's based on the FSharp.Formatting library.

License: Apache License 2.0

F# 86.10% C# 7.93% PowerShell 3.55% Shell 2.42%

fountainsharp's People

Contributors

benbtg avatar bryancostanich avatar gabornemeth avatar yuyoyuppe avatar

Stargazers

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

Watchers

 avatar  avatar

fountainsharp's Issues

Discriminated Union exposed by FountainDocument.Blocks is not C# friendly

I'm having some trouble trying to use the FountainBlockElements exposed by the FountainDocument.
As C# dev with no F# experience attempting to use the API. I'm struggling to deference the weak types exposed in my Xamarin.Forms app.
I don't understand the exactly what the problem is but the types returned all derive from FountainBlockElement have item1, item2, etc.. instead of strongly typed members.
According to my research discriminated unions should not be exposed to C# as per the F# guidlines.
For more info
https://stackoverflow.com/questions/23843142/f-discriminated-union-usage-from-c-sharp
I will see if I can work out the solution and provide a PR if possible.

HTML output does not wrap correctly on some browsers including Android

Transform any Fountain content to HTML using the HTMLFormatter.
View the document in Safari and content honours the break-word word wrap style set on all divs so only vertical scrolling is required.
View in Firefox or on an Android device and word wrapping is not honoured so horizontal and vertical scrolling is required.
I've looked at ways to force word wrap on the parent control or apply some css but it looks like ideally the generated html should be more explicit so it works as expected on all modern browsers.

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.