Pagedown: Allow to add several universities for the same degree for resume

Created on 16 Feb 2020  路  2Comments  路  Source: rstudio/pagedown

What I would like to do is to add several universities for the same degree:

### University One Location 1
### University Two Location 2
### University Three Location 3
BS in xxx
Year
Arbitrary content

Is it possible to do in in pagedown?

Most helpful comment

I would do something like that:

```{js, echo=FALSE}
Paged.registerHandlers(class extends Paged.Handler {
  constructor(chunker, polisher, caller) {
    super(chunker, polisher, caller);
  }
  beforeParsed(content) {
    const locationBreaks = content.querySelectorAll('.location br');
    for (const br of locationBreaks) {
      const icon = document.createElement('i');
      icon.className = 'fa fa-map-marker-alt';
      br.parentNode.insertBefore(icon, br.nextSibling);
    }
  }
});
```

Education {data-icon=graduation-cap data-concise=true}
--------------------------------------------------------------------------------

### University One <br> University Two <br> University Three

BS in xxx

Location 1 <br> Location 2 <br> Location 3

Year

Arbitrary content

All 2 comments

I would do something like that:

```{js, echo=FALSE}
Paged.registerHandlers(class extends Paged.Handler {
  constructor(chunker, polisher, caller) {
    super(chunker, polisher, caller);
  }
  beforeParsed(content) {
    const locationBreaks = content.querySelectorAll('.location br');
    for (const br of locationBreaks) {
      const icon = document.createElement('i');
      icon.className = 'fa fa-map-marker-alt';
      br.parentNode.insertBefore(icon, br.nextSibling);
    }
  }
});
```

Education {data-icon=graduation-cap data-concise=true}
--------------------------------------------------------------------------------

### University One <br> University Two <br> University Three

BS in xxx

Location 1 <br> Location 2 <br> Location 3

Year

Arbitrary content

Thanks a lot!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mr-illington picture mr-illington  路  3Comments

tungmilan picture tungmilan  路  5Comments

xf15 picture xf15  路  4Comments

paulcbauer picture paulcbauer  路  4Comments

xf15 picture xf15  路  3Comments