Giter Site home page Giter Site logo

fancytextrendering's People

Contributors

jimmycushnie avatar rafaelribeiro1510 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

fancytextrendering's Issues

Unified Editor and Viewer

Hi,

Love this tool - has great utility, thanks for making it.

I'm trying to make a text editor for journaling, where users view/edit a single block of fancy text and never see the markdown syntax. I haven't had any success, and I'm not sure if it's supported just yet. I've created a basic setup with the DemoRenderUpdater (similar to the demo scene), and then tried a few things without success:

  1. Adding the MarkdownRenderer to the InputField's "Text" GameObject (no fancy rendering occurs)
  2. Creating a sister GameObject to the InputField's "Text" GameObject called "Markdown-Text" with the TMP_Text and MarkdownRenderer components, and setting Text's alpha to 0 (fancy rendering does occur, but the caret disappears, and trying to highlight the fancy text instead highlights the ghost text)

I wonder if you have a solution to this, have considered it, or have suggestions for how to go about it.

Thanks again for making this

Having Isuses adding this package into existing Unity project

I am trying to import this package in my existing project. I did Window -> Package Manager -> Add Package from git URL. Unity console says,

[Package Manager Window] Cannot perform upm operation: Unable to add package [https://github.com/JimmyCushnie/FancyTextRendering.git]:
  [https://github.com/JimmyCushnie/FancyTextRendering.git] does not point to a valid package. No package manifest was found. [NotFound].
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

and

[Package Manager Window] Error adding package: https://github.com/JimmyCushnie/FancyTextRendering.git.
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

What am I doing wrong?

Fix single backslash being ignored

Due to the way escaping currently works, if you have a single isolated \ it will be invisible. You have to type two for a backslash to show up. This is lame and it's also in violation of markdown spec/standard, so it should be fixed.

Add quotes

You should be able to use > to format a quote, like so:

hi every1 im new!!!!!!! holds up spork my name is katy but u can call me t3h PeNgU1N oF d00m!!!!!!!! lol…as u can see im very random!!!! thats why i came here, 2 meet random ppl like me ^^… im 13 years old (im mature 4 my age tho!!) i like 2 watch invader zim w/ my girlfreind (im bi if u dont like it deal w/it) its our favorite tv show!!! bcuz its SOOOO random!!!! shes random 2 of course but i want 2 meet more random ppl =) like they say the more the merrier!!!! lol…neways i hope 2 make alot of freinds here so give me lots of commentses!!!!
DOOOOOMMMM!!!!!!!!!!!!!!!! <--- me bein random again ^
^ hehe…toodles!!!!!

love and waffles,

t3h PeNgU1N oF d00m

This is going to be tricky unless TMP makes some big changes. We'll probably have to add the vertical line in manually as a separate game object.

Full width line breaks

You should be able to create full width line breaks with --- or ===, like so:


TMP doesn't really support this, and the line break will probably have to be a separate game object, similar to quotes (#5)

Trouble with installation

TL;DR: using LogicUI.FancyTextRendering to include the MarkdownReader component

I'm still having trouble getting your tool up and running. You mentioned that I may need to reference the FancyTextRendering assembly in my code, but according to the documentation this is done automatically for all assemblies inside the Assets folder, right?

image

With this I'm assuming the other dependencies you mentioned are installed correctly, but I don't understand why this assembly file isn't being recognized.

Multiple levels of lists

Currently only one level of list is supported. You should be able to nest lists, like so:

Input:

1. List level one!
1. Another item on list level one!
    1. Oh damn an indented list!
    1. How cool is that!
        * And you can even mix and match the type of list!
        * There's no limit to how deep you can go!
1. Wowzers!!!

Looks like:

  1. List level one!
  2. Another item on list level one!
    1. Oh damn an indented list!
    2. How cool is that!
      • And you can even mix and match the type of list!
      • There's no limit to how deep you can go!
  3. Wowzers!!!

Related: #9

Add block monospace

We already have inline monospace by using a single backtick. We should also have block monospace by using three backticks on a line.

It would be extra amazing if block monospace supported syntax highlighting for various languages, but that shit's really hard and probably out of scope for this project.

Manually override the shrug emoticon to ignore escapes

In most markdown renderers, if you want to use the shrug emoticon ¯\_(ツ)_/¯, you have to type it like ¯\\\_(ツ)_/¯ to fix the escape stuff. This is presently the case with FTR as well, though you can't see it in the demo because the demo doesn't have a japanese font installed. I hate this, and I want FTR to manually search for ¯\_(ツ)_/¯ and render it properly, no extra escapes needed. However the extra escaped version should also work for compatibility with users who are used to that.

Add superscript

Use a ^ to make some text raise in the air.

Markdown Looks like
super^script superscript

It would also be great to support group superscript for stuff inside brackets:

Markdown Looks like
here's a ^(bunch of stuff in superscript) here's a bunch of stuff in superscript

This is an esoteric markdown feature not found in most renderers, but I like it so I want to add it to FTR.

It shouldn't be too difficult, TMP has a native superscript tag.

Tables

You should be able to create markdown tables, like this one!

Input:

| Heading one!                                                 | Heading two!                                                 | Heading three!                          |
| ------------------------------------------------------------ | ------------------------------------------------------------ | --------------------------------------- |
| Look at this crazy stuff!                                    | You can even include **markdown *formatting*** within tables! | fdsafdsafdsa                            |
| I am trained in gorilla warfare and I’m the top sniper in the entire US armed forces. You are nothing to me but just another target. I will wipe you the fuck out with precision the likes of which has never been seen before on this Earth, mark my fucking words. | graaaaaaaafdsafdsafdsafdsafdsa                               | nh ufeawnf ewan fhewaui fhewauif hdsaui |

Looks like:

Heading one! Heading two! Heading three!
Look at this crazy stuff! You can even include markdown formatting within tables! fdsafdsafdsa
I am trained in gorilla warfare and I’m the top sniper in the entire US armed forces. You are nothing to me but just another target. I will wipe you the fuck out with precision the likes of which has never been seen before on this Earth, mark my fucking words. graaaaaaaafdsafdsafdsafdsafdsa nh ufeawnf ewan fhewaui fhewauif hdsaui

This is going to be insanely complicated to implement. Glhf

Support list nodes with line breaks

Currently, each node of a list can only have one line. A line break will be interpreted as the end of the list. In accordance with markdown spec, a single line break should be treated as a line break within the current list node.

Input:

1. List
1. More list
Second line
1. Last list

Ok now the list is over

Currently looks like:

  1. List
  2. More list

Second line

  1. Last list

Ok now the list is over

Should look like:

  1. List
  2. More list
    Second line
  3. Last list

Ok now the list is over


Related: #2

No line breaks after header

Line breaks are not inserted after a header.
The webdemo and preview image show a different behaviour, no idea what's going on here.
fancytextrendering_bug

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.