GithubHelp home page GithubHelp logo

tophat / richtextview Goto Github PK

View Code? Open in Web Editor NEW
1.2K 23.0 75.0 3.11 MB

iOS Text View (UIView) that Properly Displays LaTeX, HTML, Markdown, and YouTube/Vimeo Links

Home Page: https://richtextview.com

License: Apache License 2.0

Ruby 4.22% Swift 91.33% Objective-C 0.42% JavaScript 2.76% CSS 0.87% HTML 0.42%
richtextview ios-swift opensource latex html markdown youtube vimeo

richtextview's People

Contributors

abinoda avatar aelkady avatar bisugit avatar brandonbaksh avatar dependabot-preview[bot] avatar dependabot[bot] avatar greenkeeper[bot] avatar ivan-magda avatar jakebolam avatar kushal-pandya avatar maicon-brauwers avatar mcataford avatar msrose avatar nebojsabrankovic avatar noahnu avatar noobish1 avatar orlam avatar sanchitgera avatar simon223 avatar struong9 avatar syavash 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

richtextview's Issues

Add macOS support

What is the purpose of your issue?

  • Bug
  • Feature Request
  • Question
  • Other

Description

Ensure that RichTextView can be used by macOS applications

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

Set up constraints of labels and web views

Implement a function that adds all the UILabel and WKWebView objects as subviews of THMRichTextView and constrain appropriately (first view constrained to the top of THMRichTextView, last view constrained to the bottom of THMRichTextView, tops and bottoms of middle views chain-constrained together)

Make RichTextView ObjC Compatible

What is the purpose of your issue?

  • Bug
  • Feature Request
  • Question
  • Other

Description

Add compatibility to RichTextView such that it can be used in ObjC projects

Make Rich Text View Editable

What is the purpose of your issue?

  • Bug
  • Feature Request
  • Question
  • Other

Description

It would be nice if we could make the rich text view editable, so users could add/erase content. Once they are done editing it would add the HTML/Markdown/any other relevant styling.

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

Implement RichLabelGenerator

Takes as input a string of rich text and outputs a label with the correct attributed text set. Feed a class that conforms to the latex parser protocol to RichTextParser

Richtextview begin{align} not working.

How can i show this LaTex string in RichtextView?

"\begin{align}
\n\because \text{According to the question,}\\
\n\frac{1}{2}m(v_f)^2&=\frac{1}{2}\times\frac{1}{2}m(v_i)^2\\
\n(v_i,v_f=\text{initial and final speeds of the body}\\
\nor \quad\ (v_f)^2&=\frac{(v_i)^2}{2}\ or\ v_f=\frac{10}{\sqrt{2}}\\
\nGiven,\quad f&=-kv\\
\nor\quad ma&=-kv\Rightarrow\frac{mdv}{dt}=-kv\\
\n\Rightarrow\int_{10}^{\frac{10}{\sqrt{2}}}\frac{1}{v}dv&=-\int_{0}^{10}kdt\tag{ m=1kg}\\
\n\Rightarrow(ln\ v)_{10}^{\frac{10}{\sqrt{2}}}&=-k(10)\\
\n\Rightarrow ln\ \frac{10}{\sqrt{2}} - ln\ 10&=-k(10)\\
\n\Rightarrow k=\frac{1}{10}ln\frac{10}{10/\sqrt{2}}&=\frac{1}{10}ln \sqrt{2}=\frac{ln\ 2}{20}
\n
\n\end{align}"

the baseline of the text is always on the bottom, could you make it codable?

What is the purpose of your issue?

  • Feature: make the baseline/alignment of the text codable

Description

when I put a some normal text and big math formula at the same line. The baseline is at the bottom of the textview, so the formula looks too tall *&^%, that looks weird.
I hope the baseline stand in the center or make it codable

href link

What is the purpose of your issue?

  • Bug
  • Feature Request
  • Question
  • Other

Description

Provide as much information possible about the issue below

<a href='https://www.google.com'>jump to page</a>

How can I do?
thank you

Add Swift Style Guide

What is the purpose of your issue?

  • Bug
  • Feature Request
  • Question
  • Other

Description

Add a Swift Style Guide for future collaborators to references

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

An in-range update of docusaurus is breaking the build 🚨

The devDependency docusaurus was updated from 1.6.2 to 1.7.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

docusaurus is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ci/circleci: build: CircleCI is running your tests (Details).
  • ci/circleci: website: Your tests failed on CircleCI (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

How to show Latex text?

Latex String is not showing proper equation, Here I have one string like

"From a circular card board of uniform thickness and mass M, a square disc of maximum possible area is cut. If the moment of inertia of the square with the axis of rotation at the centre and perpendicular to the plane of the disc is $\frac{Ma^2}{6}$, the radius of the circular card board is"

how to display it?

Add support for images

What is the purpose of your issue?

  • Bug
  • Feature Request
  • Question
  • Other

Description

Add support for images as an additional rich text type. Input format TBD.

Use AST HTML parsing available in latest Down library

What is the purpose of your issue?

  • Feature Request
  • Question
  • Other

Description

Down has recently updated to use AST parsing to generate an NSAttributedString from HTML instead of the usual NSAttributedString way of doing it. However, this has broken some tests and functionality in this library. The purpose of this ticket is to update to the latest Down library and fix anything that's broken.

Add Tooltip to Rich Text View

What is the purpose of your issue?

  • Bug
  • Feature Request
  • Question
  • Other

Description

This would include the ability to, at a minimum, cut/copy/paste/select/select all text

RichTextView inside CollectionViewCell

What is the purpose of your issue?

  • Bug
  • Question
  • Other

Description

I am beginner to swift programming.
I am trying to use richtextview inside uicollectionview cell. My collectionview cell contain one richtextview and one imageview both embedded in a stackview.
But the problem i am facing is as soon as collectionview cell loads all cells disappears and i can only see the scroll indicator.

Edit: If I update input inside cellForItemAt only then this happens.

Generic Bug Fixes After First Use

What is the purpose of your issue?

  • Bug
  • Feature Request
  • Question
  • Other

Description

  • UILabel text does not wrap around
  • Markdown styling not retained
  • HTML/Markdown parsing consistently leaves a trailing newline that needs to be trimmed
  • WebViews not rendering

Add RichTextView input callback

What is the purpose of your issue?

  • Feature Request
  • Question
  • Other

Description

Provide as much information possible about the issue below
I want listen content of the RichTextView when input or delete some content.

Add LaTeX parsing functionality

Implement protocol that extracts anything in a [math][/math] tag from an input string and replaces it (tags included) with an image/string.

Ideally this should use the Down LaTeX parser but if not we can use iosMath. Output will be determined by which path we take.

Generate array of labels and web views

This function should return an array of UILabel and WKWebView objects in the proper order, UILabels for non-video substrings and WKWebViews for video substrings.

Add ability to update input

What is the purpose of your issue?

  • Bug
  • Feature Request
  • Question
  • Other

Description

We need to add the ability for users of RichTextView to be able to update the input text on the fly.

How to show content with html format and correct Language format?

I spend a lot of time show this content as a description but I am failed to manage this can anyone guide how can display it

`A'ishah said that the Messenger of Allah used to start the prayer by
reciting the Takbir (Allahu Akbar; Allah is Greatest)
and then recite,

                                                                                                                               الْحَمْدُ للَّهِ رَبِّ الْعَـلَمِينَ

All praise and thanks be to Allah, the Lord of all that exists. (Ibn Abi Hatim 1:2).

Above content coming from the API from a Nobel Book, I have no control about content, HTML tag, and Arabic.

Problem description:

I able to show text with HTML tag but Arabic content always set it left the position. it should be right according to Arabic language rule.


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.