Skip to content

[VarDumper] Fix rendering of inline code #9605

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

Merged

Conversation

kevin-verschaeve
Copy link
Contributor

A small piece of code that is not rendered correctly on the varDumper component

@javiereguiluz
Copy link
Member

This is tricky. We did this on purpose because the :class: feature doesn't work with placeholders like EXCLUDE_* so we decided to link to the class and append the EXCLUDE_* text at the end of it, so the link to Symfony API works.

Maybe we can fix this with a little reword:

* A bit field of ``EXCLUDE_*`` constants from the 
  :class:`Symfony\\Component\\VarDumper\\Caster\\Caster` class.

@kevin-verschaeve
Copy link
Contributor Author

Oh I see.

Yes we can do as you propose or keep as it is but removing some unwanted backquotes

image

See, there is twice 2 backquotes that prevent the rendering and complicate reading. We can just remove them.

Tell me, what is the best, I will update the PR

…ning of the First Example page (Lyrkan)

This PR was submitted for the 3.3 branch but it was merged into the 3.4 branch instead (closes symfony#9526).

Discussion
----------

[Encore] Don't enable the Sass loader at the beginning of the First Example page

Someone pointed out in symfony/webpack-encore#287 that if you follow the [First example](http://symfony.com/doc/master/frontend/encore/simple-example.html) page from top to bottom you are going to run `yarn encore` before being informed that calling `enableSassLoader()` implies adding additional dependencies (which is done just after).

~~This PR moves the related paragraph to warn the user that Encore will tell him about missing packages before he encounters the error.~~

~~I also added the "after running it" part to make it a bit more obvious that the information is going to be present in the command output.~~

**Edit:** Changed it so `enableSassLoader()` is commented before running Encore for the first time

Commits
-------

18586e2 [Encore] Don't enable the Sass loader at the beginning of the First Example page
@kevin-verschaeve kevin-verschaeve force-pushed the var-dumper/fix-code-rendering branch from 0d5bc47 to 15ef727 Compare April 16, 2018 13:37
@kevin-verschaeve
Copy link
Contributor Author

@javiereguiluz it seems that just adding a space fix the issue :)

@javiereguiluz javiereguiluz changed the base branch from master to 3.4 April 16, 2018 14:47
@javiereguiluz javiereguiluz force-pushed the var-dumper/fix-code-rendering branch from 15ef727 to 8389469 Compare April 16, 2018 14:47
@javiereguiluz
Copy link
Member

I like your solution! Let's merge it (on 3.4 branch). Thanks!

@javiereguiluz javiereguiluz merged commit 8389469 into symfony:3.4 Apr 16, 2018
javiereguiluz added a commit that referenced this pull request Apr 16, 2018
This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes #9605).

Discussion
----------

[VarDumper] Fix rendering of inline code

A small piece of code that is not rendered correctly on the varDumper component

Commits
-------

8389469 [VarDumper] Fix rendering of inline code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants