From cf7efa6eb4211281287e65f0ed3a8d51eae38442 Mon Sep 17 00:00:00 2001 From: philhagen-rc Date: Wed, 11 Feb 2026 09:49:05 -0500 Subject: [PATCH] Update atomic_doc_template.md.erb - replace html tags with markdown formatting - adjust heading/subheading levels for structural integrity these will permit better handling and display downstream on atomicredteam.io --- atomic_red_team/atomic_doc_template.md.erb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/atomic_red_team/atomic_doc_template.md.erb b/atomic_red_team/atomic_doc_template.md.erb index d6a522f5..36b4ca2b 100644 --- a/atomic_red_team/atomic_doc_template.md.erb +++ b/atomic_red_team/atomic_doc_template.md.erb @@ -1,11 +1,11 @@ # <%= technique['identifier'] %> - <%= technique['name'] -%> ## [Description from ATT&CK](https://attack.mitre.org/techniques/<%= technique['identifier'].gsub(/\./, '/') %>) -
-<%= technique['description'].gsub("%\\<", "%<").gsub(/.*?<\/code>/) { |match| match.gsub('~', '\~') } %> - -
+<% attack_description_lines = technique['description'].gsub("%\\<", "%<").gsub(/.*?<\/code>/) { |match| match.gsub('~', '\~') } %> +<% attack_description_lines.each do |desc_line| %> +> <%= desc['line'].strip %> +<% end %> ## Atomic Tests <% atomic_yaml['atomic_tests'].each_with_index do |test, test_number| -%> @@ -14,9 +14,9 @@ <% end %> <% atomic_yaml['atomic_tests'].each_with_index do |test, test_number| -%> -
-## Atomic Test #<%= test_number+1 %> - <%= test['name'] %> + +### Atomic Test #<%= test_number+1 %> - <%= test['name'] %> <%= test['description'].strip -%> @@ -95,5 +95,4 @@ end%> -
<%- end -%>