Coder Social home page Coder Social logo

ltmarkdownparser's People

Contributors

brandenr avatar nickmshelley avatar serenadex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ltmarkdownparser's Issues

Set font size and styles

Hello, how can i set the styles for the normal paragraphs, and the bold and the headers each level?

thanks

Remove escape from numbered lists?

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?

Quotes appear like <blockquote>

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.

Index of out range while configuring custom font sizes

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]

Parse leveled lists

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:

  • hello
    • hello
      • hello
  • hello

We need to add that parsing so people can use multiple levels of indentation

Write solid tests

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

Add HTML to the parsing

LTMarkdown parser should be able to go from HTML to markdown to attributed string and vice versa in any direction:

markdown-html-nsattributedstring

Nested Styling Does Not Work

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.

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.