Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post image and text in seperate lines #11

Open
MuditSharmaPega opened this issue Aug 13, 2015 · 1 comment
Open

Post image and text in seperate lines #11

MuditSharmaPega opened this issue Aug 13, 2015 · 1 comment

Comments

@MuditSharmaPega
Copy link

Hi,
I want to post text and image(s) in same post. Even if I enter it in different lines, final markup gets them in same line. Can we fix this issue?

@patorjk
Copy link
Owner

patorjk commented Aug 13, 2015

Adding a paragraph tag or a br to the tags array in xbbcode.js would probably fix this. Example: (update around line 97):

    "p": {
        openTag: function(params,content) {
            return '<p>';
        },
        closeTag: function(params,content) {
            return '</p>';
        }
    },
    "br": {
        openTag: function(params,content) {
            return '<br>';
        },
        closeTag: function(params,content) {
            return '';
        }
    },

Then you could use code like:

[image]image url[/image][p]This is a test[/p][br][/br]one more test

And it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants