Coder Social home page Coder Social logo

alfredoramos / phpbb-ext-markdown Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 4.0 1.4 MB

Markdown extension for phpBB

License: GNU General Public License v2.0

PHP 92.31% HTML 1.54% CSS 1.95% JavaScript 1.94% SCSS 2.27%
phpbb phpbb-extension markdown litedown pipetables tasklists

phpbb-ext-markdown's People

Contributors

alfredoramos avatar dependabot[bot] avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

phpbb-ext-markdown's Issues

Markdown help page not working in 0.7.0-beta

Bug reported via email.

It gives the following error:

Catchable fatal error: Argument 1 passed to phpbb\help\controller\controller::__construct() must be an instance of phpbb\controller\helper, none given in /srv/http/forum/phpbb/help/controller/controller.php on line 49

Posting option to disable Markdown is shown even if disabled in the ACP

Even If the global option in the ACP disables the use of Markdown, the posting option to disable Markdown is shown, however they do nothing since Markdown is already disabled.

It's just a template bug.

Currently affects:

  • Post settings (Allow Markdown in posts)
  • Private message settings (Allow Markdown in private messages)

Signature settings (Allow Markdown in user signatures) are not affected by this bug.

Original report:

Paragraph regression

The pull request #22 introduced a regression which removes styling for paragraphs in content (post, signature, private messages).

Handle tabs inside code blocks

phpBB has a built-in feature that adds indentation when pressing the tab key inside [code] BBCode.

Something similar would be useful for code blocks.

Posting option to disable Markdown does not keep value

When I make post with option "[x] Disable Markdown", and then try to edit it - I see that option value is cleared.

If I then press "Submit" (without any change) - I see markdown get parsed.

I tried #34, but this bug still there.

Purging extension takes hours

Hi, purging extension takes literally hours on my large forum, is it really required? I can see thousands of SQL updates per second.

about image description

use markdown input the photo,like this
![img description](img address)

but in postshow dose not have tittle or alt details.only have image description

like this

how can I modify it to achieve the img tittle or alt

thanks

Sometimes not working

Hi,

First of all, thank you for this great extension!

I started to use it on my Forum and noticed that sometimes the new post are not formatted. I need to purge the cache to make it work again.

It seems Markdown is enabled:
image

Do you have any idea?

negative impact of createParagraphs rule

We want to enable Markdown extension on our board, to make some experiments, but we are not sure that we will keep it after.

Unfortunately with this extension enabled every new (or edited) post get additional <p> wrapping.

This has no visual impact while the extension enabled.
But if we disable it - it's css removed, and posts text gets too large.

Worse of all - every post affected, even with disabled markdown option (#36)

Bug (?) in `ucp_markdown_status`

Not sure if this causes any actually-existing bug, but I noticed this while grepping for something unrelated in my phpBB install:

if (($event['id'] !== 'ucp_prefs' && $event['mode' !== 'post']) &&

$event['mode' !== 'post'], and therefore the entire condition, is presumably always going to be falsy, because it evaluates to $event[true], which presumably doesn't exist.

Should be $event['mode'] !== 'post' instead.

Tables not working

phpBB Markdown Version: dev (6715a8298c28f00de9600234dc660fcee0059d9a)

Tables as documented don't seem to work.

| Left | Center | Right |
|:-----|:------:|------:|
|   x  |    x   |   x   |

results in:

LeftCenterRightxxx

Tried with BBCode enabled and disabled.

Font enlarged with enabled Markdown plugin

PHP version: 7.2.19
phpBB version: 3.2.7
Markdown version: 1.0.0

As soon as I enabled the Markdown plugin and update or create any post, that post gets enlarged font, as seen on the image below.


Left updated post with extension enabled, right old post.

Is it possible to use PipeTables without Litedown?

Even if you are not going to support such setup in your extension - someone might want to write separate extension for PipeTables.

Then I wonder if line 208 would prevent those hypothetical extension to function (also line 270, etc):

// Check if plugins should be disabled
if (!$this->markdown_enabled)
{
unset($configurator->Litedown);
unset($configurator->PipeTables);
return;
}

Feature Request: Task lists

Just a request, if possible for markdown support in phpBB (great extension by the way.)

Can we have support for checkboxes?

- [x] done
- [ ] todo

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.