From 95ac9549b2d17235ddb70a4bb3db68541d95acfb Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 7 Mar 2019 10:28:33 +0100 Subject: [PATCH] Improved the highlighting of JS examples in Mercure docs --- mercure.rst | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/mercure.rst b/mercure.rst index b82263be47a..ff9b457cc70 100644 --- a/mercure.rst +++ b/mercure.rst @@ -189,30 +189,29 @@ Subscribing to updates in JavaScript is straightforward: .. code-block:: javascript - Mercure also allows to subscribe to several topics, and to use URI Templates as patterns: .. code-block:: javascript - .. tip:: @@ -293,7 +292,7 @@ by using the ``AbstractController::addLink`` helper method:: public function __invoke(Request $request): JsonResponse { // This parameter is automatically created by the MercureBundle - $hubUrl = $this->getParameter('mercure.default_hub'); + $hubUrl = $this->getParameter('mercure.default_hub'); // Link: ; rel="mercure" $this->addLink($request, new Link('mercure', $hubUrl)); @@ -310,7 +309,6 @@ and to subscribe to it: .. code-block:: javascript - Authorization -------------