refactor code
This commit is contained in:
parent
7b1f8ddef0
commit
5f8d2e706e
1 changed files with 3 additions and 1 deletions
|
@ -12,12 +12,14 @@
|
|||
|
||||
## 4.3. 일정표(Schedule)
|
||||
|
||||
일정은 다음 표와 같다.
|
||||
|
||||
<%
|
||||
const getIssueByNumber = (n) => it.issues.filter(x=> x.number === n)[0];
|
||||
|
||||
const trId= (n)=>{
|
||||
const title = getIssueByNumber(n).title;
|
||||
return `(#${n}) ${title}`.replaceAll(/[^A-Za-z\s0-9]/gi,"").toLocaleLowerCase().replaceAll(" ","-");
|
||||
return it.toHeadId(`(#${n}) ${title}`);
|
||||
}
|
||||
const inTable = (arr) => {
|
||||
return arr.map(x=> `[#${x}](./specific.md#${trId(x)})`).join(', ')
|
||||
|
|
Loading…
Add table
Reference in a new issue