MonoBrowser 0.0.1-alpha

This is a prerelease version of MonoBrowser.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package MonoBrowser --version 0.0.1-alpha                
NuGet\Install-Package MonoBrowser -Version 0.0.1-alpha                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MonoBrowser" Version="0.0.1-alpha" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MonoBrowser --version 0.0.1-alpha                
#r "nuget: MonoBrowser, 0.0.1-alpha"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MonoBrowser as a Cake Addin
#addin nuget:?package=MonoBrowser&version=0.0.1-alpha&prerelease

// Install MonoBrowser as a Cake Tool
#tool nuget:?package=MonoBrowser&version=0.0.1-alpha&prerelease                

logo_mono

MonoBrowser Core

MonoBrowser Core is a markdown rendering engine written in F# for MonoGame, and adaptable to desktop, mobile, and embedded C#/F# applications.

image

Documenation

  1. Add component to your game or project
var browserWindow = new Rectangle(10, 10, _graphics.PreferredBackBufferWidth - 20, _graphics.PreferredBackBufferHeight - 20);

var browser = new OleaComponent(this, browserWindow)
{
    EnableDebug = true,
    EnableScrollbar = true,
    AllowScroll = true,
    DisableImages = false
};

browser.OnLinkClicked += (_, url) =>
{
    // load new page or invoke method inside your game
    Console.WriteLine($"User clicked on: {url}");
};

Components.Add(browser);
  1. Open remote markdown document with browser.Navigate("https://yoursite/readme.md")
  2. Close window with browser.Close()

Support

F# C#

Version

This is alpha version, some markdown tags are missing!

Roadmap

  1. Font dowloading
  2. Styles
  3. Smooth scrolling

Licenses

ImageSharp - allows convert images to PNG and load it to the game

AngleSharp - HTML parser

Markdig - markdown parser

FontStashSharp - fonts and text rendering

Apos Input - events

Inter font - default font

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.2-alpha 47 11/1/2024
0.0.1-alpha 60 10/31/2024 0.0.1-alpha is deprecated because it has critical bugs.