File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -124,12 +124,14 @@ module.exports = function (eleventyConfig) {
124124 const codes = [ ]
125125 const pres = [ ]
126126 return (
127- // TODO: sanitize HTML content
128127 text
129128 // Newlines have extra escapes in the strings
130129 . replace ( / \\ \n / g, '\n' )
130+ // Escape HTML
131+ . replace ( / < / g, '<' )
132+ . replace ( / > / g, '>' )
131133 // Replace `` with <code> tags
132- . replace ( / ` ( [ ^ ` ] + ?) ` / g, ( _match , code ) => {
134+ . replace ( / ` ( [ ^ \r \n ` ] + ?) ` / g, ( _match , code ) => {
133135 codes . push ( code ) // Save the code for later
134136 return `<code></code>`
135137 } )
Original file line number Diff line number Diff line change 7676 background-repeat : repeat-x;
7777 background-position : 50% 0 ;
7878}
79+ th , tr {
80+ font-family : var (--font-family-alternate );
81+ }
7982.container {
8083 width : 100% ;
8184 max-width : 910px ;
You can’t perform that action at this time.
0 commit comments