[devdocsgjs/main: 807/1867] vue-router: fix notes




commit b34dbb25f80e15c7e709c524ce3cd149e205acb3
Author: Jasper van Merle <jaspervmerle gmail com>
Date:   Tue Aug 13 18:25:57 2019 +0200

    vue-router: fix notes

 lib/docs/filters/vue_router/clean_html.rb | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/lib/docs/filters/vue_router/clean_html.rb b/lib/docs/filters/vue_router/clean_html.rb
index 19c6e7ae..71c1a132 100644
--- a/lib/docs/filters/vue_router/clean_html.rb
+++ b/lib/docs/filters/vue_router/clean_html.rb
@@ -7,6 +7,13 @@ module Docs
         # Remove unneeded elements
         css('.bit-sponsor, .header-anchor').remove
 
+        css('.custom-block').each do |node|
+          node.name = 'blockquote'
+
+          title = node.at_css('.custom-block-title')
+          title.name = 'strong' unless title.nil?
+        end
+
         doc
       end
     end


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]