Skip to content

Commit b4d8603

Browse files
authored
Merge pull request rails#49418 from akhilgkrishnan/html-to-erb
Fix the wrong markdown highlighting [skip ci]
2 parents af95a7d + 2e35046 commit b4d8603

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

activestorage/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Active Storage, with its included JavaScript library, supports uploading directl
145145
1. Include the Active Storage JavaScript in your application's JavaScript bundle or reference it directly.
146146

147147
Requiring directly without bundling through the asset pipeline in the application HTML with autostart:
148-
```html
148+
```erb
149149
<%= javascript_include_tag "activestorage" %>
150150
```
151151
Requiring via importmap-rails without bundling through the asset pipeline in the application HTML without autostart as ESM:

guides/source/action_view_helpers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ See [the API Documentation for more information](https://api.rubyonrails.org/cla
533533
Returns meta tags "csrf-param" and "csrf-token" with the name of the cross-site
534534
request forgery protection parameter and token, respectively.
535535

536-
```html
536+
```erb
537537
<%= csrf_meta_tags %>
538538
```
539539

guides/source/active_storage_overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ The two processors are not fully compatible, so when migrating an existing appli
927927
between MiniMagick and Vips, some changes have to be made if using options that are format
928928
specific:
929929

930-
```rhtml
930+
```erb
931931
<!-- MiniMagick -->
932932
<%= image_tag user.avatar.variant(resize_to_limit: [100, 100], format: :jpeg, sampling_factor: "4:2:0", strip: true, interlace: "JPEG", colorspace: "sRGB", quality: 80) %>
933933

guides/source/testing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -747,9 +747,9 @@ ERB allows you to embed Ruby code within templates. The YAML fixture format is p
747747

748748
```erb
749749
<% 1000.times do |n| %>
750-
user_<%= n %>:
751-
username: <%= "user#{n}" %>
752-
email: <%= "user#{n}@example.com" %>
750+
user_<%= n %>:
751+
username: <%= "user#{n}" %>
752+
email: <%= "user#{n}@example.com" %>
753753
<% end %>
754754
```
755755

0 commit comments

Comments
 (0)