Skip to content

Commit b96633b

Browse files
committed
Add anchors links
Src code patched until remarkjs/remark-autolink-headings#41 is merged, if ever, we should probably use a fork
1 parent 2a4f0f7 commit b96633b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

DISCUSSION.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ this branch:
1818
- [ ] Finish `Navigation` component (greg)
1919
- [x] Add custom route for landing page (greg)
2020
- [x] Fixed sidebar (Fernando)
21+
- [x] Add anchor icons (Fernando)
2122

2223
Some of these should be fairly quick adds now that the site works. The two
2324
toughest ones are most likely the markdown parsing and external population. The

webpack.common.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
88
const ExtractTextPlugin = require('extract-text-webpack-plugin');
99
const DirectoryTreePlugin = require('directory-tree-webpack-plugin');
1010

11+
1112
module.exports = (env = {}) => ({
1213
devtool: 'source-map',
1314
context: path.resolve(__dirname, './src'),
@@ -37,8 +38,13 @@ module.exports = (env = {}) => ({
3738
plugins: [
3839
// TODO: Add necessary remark plugins
3940
require('remark-slug'),
40-
require('remark-autolink-headings'),
41-
require('remark-html'),
41+
[
42+
require('remark-autolink-headings'),
43+
{
44+
behaviour: 'append'
45+
}
46+
],
47+
require('remark-html')
4248
require('remark-mermaid')
4349
]
4450
}

0 commit comments

Comments
 (0)