book-source 0.3.17 → 0.3.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -98,7 +98,7 @@ exports.toc = ( structuredDocument , object , params , data ) => {
98
98
  let text = new documentParts.Text( StructuredDocument.getText( object ) ) ;
99
99
  link.parts.push( text ) ;
100
100
 
101
- let simpleItem = { title: object.getText() , href: object.href , children: [] } ;
101
+ let simpleItem = { title: object.getText() , href: '#' + object.id , children: [] } ;
102
102
 
103
103
  if ( ! data.tocHeaderLevelStack.length ) {
104
104
  data.tocHeaderLevelStack.push( object.level ) ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "book-source",
3
- "version": "0.3.17",
3
+ "version": "0.3.18",
4
4
  "description": "A lightweight markup language, inspired by Markdown.",
5
5
  "main": "lib/book-source.js",
6
6
  "directories": {