Expose reference IDs in output

For new developers who will come here across searching for extensibillity I create proposal for more extensible and modular commonmark Flexibility and modularity for the win! and also extensions’ ecosystem