Giter Club home page Giter Club logo

Comments (13)

CharlesMangwa avatar CharlesMangwa commented on July 30, 2024

Hi @linonetwo! Do you still have this problem? Don't forget that you can use {'\n'} to add a new line.

from react-native-simple-markdown.

CharlesMangwa avatar CharlesMangwa commented on July 30, 2024

Closing issue #7

from react-native-simple-markdown.

linonetwo avatar linonetwo commented on July 30, 2024

Sorry for being brief, what I concerned is the consistency between traditional MD and this.

Since my crawler crawls lots of MD from GitHub or so, they don't have {'\n'} but instead two space after each line.

from react-native-simple-markdown.

CharlesMangwa avatar CharlesMangwa commented on July 30, 2024

Can you show me an example of your issue please? Because 2 spaces line breaking do work actually.

from react-native-simple-markdown.

linonetwo avatar linonetwo commented on July 30, 2024

Oh, I hadn't tried it yet, since in Readme.MD you use {'\n'} , which is unusual, so I misunderstood it as we can only use this.

If it's ok to just use two spaces, then this issue can be safely close...

from react-native-simple-markdown.

linonetwo avatar linonetwo commented on July 30, 2024

And newline (<Text>) is still WIP on Readme.MD, so I issue this.

from react-native-simple-markdown.

CharlesMangwa avatar CharlesMangwa commented on July 30, 2024

Yes you're right, I forgot to remove it. But yeah: it takes the 2 spaces 🙂

from react-native-simple-markdown.

CharlesMangwa avatar CharlesMangwa commented on July 30, 2024

Closing issue #7

from react-native-simple-markdown.

dinodsaurus avatar dinodsaurus commented on July 30, 2024

Im still having some issues with new lines, I copy pasted your example and this is how it looks like - https://www.dropbox.com/s/ey143aw603z4ysm/Screenshot%202016-12-19%2016.59.42.png?dl=0

from react-native-simple-markdown.

CharlesMangwa avatar CharlesMangwa commented on July 30, 2024

Hi @dinodsaurus! I don't have any new lines in my example. Did you try to add \n?

from react-native-simple-markdown.

dinodsaurus avatar dinodsaurus commented on July 30, 2024

First of all thanks for this quick response! :)
If I add \nit makes a line break but it doesnt render headings anymore, do I need to add flex: 1to all text elements ?
I added \n after h1 -
https://www.dropbox.com/s/fj67bmeg8bbsb1z/Screenshot%202016-12-19%2017.12.44.png?dl=0

from react-native-simple-markdown.

CharlesMangwa avatar CharlesMangwa commented on July 30, 2024

Did you try with {'\n\n'} instead of {'\n'} for the headings? It should be better if I'm not mistaken

from react-native-simple-markdown.

dinodsaurus avatar dinodsaurus commented on July 30, 2024

Thanks a lot! Sorry for this question, but didnt get it what you meant by two spaces in previous comments ;)

from react-native-simple-markdown.

Related Issues (20)

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.