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

PHP5.3: Replace HTML with placeholders as it's inserted #7

Open
Kroc opened this issue Dec 5, 2012 · 0 comments
Open

PHP5.3: Replace HTML with placeholders as it's inserted #7

Kroc opened this issue Dec 5, 2012 · 0 comments

Comments

@Kroc
Copy link
Owner

Kroc commented Dec 5, 2012

As part of moving to PHP5.3, large portions of ReMarkable can be re-architectured. ReMarkable limited itself somewhat due to the restriction of one overall function. With anonymous functions, we can rethink some of the complex regex sections and deal much better with the multi-layered aspect of markup.

At the moment, markup collision with HTML is very carefully handled and avoided. Whilst PRE / CODE are masked out right at the beginning, as more HTML gets added by headings and other markup, chances of collision may increase. Using PHP5.3 anonymous / nested functions, it will be possible to replace HTML tags with placeholders after each instance where HTML tags get inserted. This should reduce collision and reduce the need for regex edge cases.

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

1 participant