|
| 1 | +{%- assign words = include.content | split: " " -%} |
| 2 | + |
| 3 | +{%- for word in words -%} |
| 4 | + {% if word contains "#" %} |
| 5 | + {% if word contains "," %}{% assign separator = true %}{% else %}{% assign separator = false %}{% endif %} |
| 6 | + {%- assign data = word | split: "#" -%} |
| 7 | + {%- assign bug_cat = data[0] | strip_newlines -%} |
| 8 | + {%- assign bug_id = data[1] | strip_newlines | remove: "," -%} |
| 9 | + |
| 10 | + {%- case bug_cat -%} |
| 11 | + {%- when "Bootstrap" -%} |
| 12 | + <a href="https://github.com/twbs/bootstrap/issues/{{ bug_id }}">#{{ bug_id }}</a> |
| 13 | + {%- when "Edge" -%} |
| 14 | + <a href="https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/{{ bug_id }}">Edge issue #{{ bug_id }}</a> |
| 15 | + {%- when "A11yUserVoice" -%} |
| 16 | + <a href="https://microsoftaccessibility.uservoice.com/forums/307429-microsoft-accessibility-feedback/suggestions/{{ bug_id }}">Microsoft A11y UserVoice idea #{{ bug_id }}</a> |
| 17 | + {%- when "UserVoice" -%} |
| 18 | + <a href="https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer/suggestions/{{ bug_id }}">Edge UserVoice idea #{{ bug_id }}</a> |
| 19 | + {%- when "Mozilla" -%} |
| 20 | + <a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bug_id }}">Mozilla bug #{{ bug_id }}</a> |
| 21 | + {%- when "Chromium" -%} |
| 22 | + <a href="https://bugs.chromium.org/p/chromium/issues/detail?id={{ bug_id }}">Chromium issue #{{ bug_id }}</a> |
| 23 | + {%- when "WebKit" -%} |
| 24 | + <a href="https://bugs.webkit.org/show_bug.cgi?id={{ bug_id }}">WebKit bug #{{ bug_id }}</a> |
| 25 | + {%- when "Safari" -%} |
| 26 | + <a href="https://openradar.appspot.com/{{ bug_id }}">Apple Safari Radar #{{ bug_id }}</a> |
| 27 | + {%- when "Normalize" -%} |
| 28 | + <a href="https://github.com/necolas/normalize.css/issues/{{ bug_id }}">Normalize #{{ bug_id }}</a> |
| 29 | + {%- else -%} |
| 30 | + <strong>parse error</strong> |
| 31 | + {%- endcase -%}{% if separator %}, {% endif %} |
| 32 | + |
| 33 | + {% else %} |
| 34 | + {{ word }} |
| 35 | + {%- endif -%} |
| 36 | +{%- endfor -%} |
0 commit comments