lyokotech / ltmarkdownparser Goto Github PK
View Code? Open in Web Editor NEWA Markdown Parser written in Swift, based on code from TSMarkdownParser
License: MIT License
A Markdown Parser written in Swift, based on code from TSMarkdownParser
License: MIT License
Change name of the pod to LTMarkdownParser
Substitue \t
for \u{00A0}
on the lists
Hello, how can i set the styles for the normal paragraphs, and the bold and the headers each level?
thanks
Something like testπ
will throw an error.
Right now numbered lists parse into markdown as follows
1\. something
2\. something else
However this is not markdown. Markdown keep the dots unescaped. So my question is should I parse out to markdown with or without the escapes on the numbered list dots?
Hello I have some > text
and in the resulting string it shows <blockquote>text</blockquote>
is there something I can do to fix it?
thanks.
My code:
let parser = LTMarkdownParser() parser.listAttributes.append([NSFontAttributeName: UIFont.systemFontOfSize(20.0)]) let attString = parser.attributedStringFromMarkdown(model.prayerRequests)!
The code crashes at line 65 while trying to access what seems to be attributesArray at [-1]
Go from an attributed string to markdown as well
Right now it doesn't parsed lists with multiple levels e.g.
To reproduce, use the following markdown:
+ hello
+ hello
+ hello
+ hello
Which translates to:
We need to add that parsing so people can use multiple levels of indentation
The parsing is still really buggy. There are a handful of unit tests in here but I think we should have a lot more, and have the Example project have a working UITextView which we can put an attributed string into and test it manually. No reproduction steps
In Markdown, you should be able to nest styling as follows:
Hello world
But now it only styles as follows:
Hello world
This needs to be remedied and tests written for it.
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.