To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Verified Commit 24d2dbd6 authored by Sandro Lutz's avatar Sandro Lutz
Browse files

Improve title styling for joboffers

parent a90873ca
......@@ -29,10 +29,6 @@ export default class Joboffer {
getDescription() {
const otherLanguage = currentLanguage() === 'en' ? 'de' : 'en';
const description =
this[`description_${currentLanguage()}`] || this[`description_${otherLanguage}`];
// Use regex to substitute headers in description with h3 headers
const regex = /(#+\s+)(\w+)/g;
return description.replace(regex, (match, p1, p2) => `### ${p2}`);
return this[`description_${currentLanguage()}`] || this[`description_${otherLanguage}`];
}
}
......@@ -4,5 +4,13 @@
.description {
padding: 0 2em;
h1 {
margin: .5em 0;
}
h1,h2,h3,h4,h5 {
padding-top: 1.5em;
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment