tophat / richtextview Goto Github PK
View Code? Open in Web Editor NEWiOS Text View (UIView) that Properly Displays LaTeX, HTML, Markdown, and YouTube/Vimeo Links
Home Page: https://richtextview.com
License: Apache License 2.0
iOS Text View (UIView) that Properly Displays LaTeX, HTML, Markdown, and YouTube/Vimeo Links
Home Page: https://richtextview.com
License: Apache License 2.0
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.
🚨 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.
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
import RichTextView showing error like No such module 'RichTextView'
already add pod pod 'RichTextView'
Update the podspec with the Apache License. Also clean up the podspec in general and make the project a public Cocoapod.
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
Takes an input string, extracts the math tags, treats the rest as HTML/Markdown and renders appropriately, and reinserts the string returned from down (or images returned from iosMath) into the attributed string, and returns that.
1.6.2
to 1.7.0
.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.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
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.
This would include the ability to, at a minimum, cut/copy/paste/select/select all text
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)
Provide as much information possible about the issue below
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.
This ticket also includes replacing [code] and [/code] tags with ` so they can be treated properly by Markdown.
Includes adding a style guide
Ensure that projects using the Swift Package Manager for their dependency management can use this project as a dependency.
Add support for images as an additional rich text type. Input format TBD.
Should point to Pod. Also add Swift Style Guide.
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
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
how to display it?
🚨 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.
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.
We need to add the ability for users of RichTextView to be able to update the input text on the fly.
Takes as input either a youTube[ or vimeo[ string and returns a webview with the appropriate URL loaded.
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.
Add compatibility to RichTextView such that it can be used in ObjC projects
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}"
Add a Swift Style Guide for future collaborators to references
🚨 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.
Provide as much information possible about the issue below
I want listen content of the RichTextView when input or delete some content.
🚨 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.
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.
Ensure that RichTextView
can be used by macOS applications
Implement function that takes as input an HTML/Markdown string and returns an NSAttributedString (using Down)
Maintain compatibility with latest XCode/Swift
Should come for free with #6
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.