metanorma / coradoc

Coradoc is the Core AsciiDoc Parser used by Metanorma
MIT License
1 stars 2 forks source link

ReverseAdoc creates duplicated anchors #102

Open ronaldtse opened 3 weeks ago

ronaldtse commented 3 weeks ago

For document 002:

$ bundle exec reverse_adoc -rcoradoc/reverse_adoc/plugins/plateau \
  --split-sections 2 --external-images \
  -o sources/002-v4/document.adoc \
  reference-docs/plateau-document-02-v4.html
$ bundle exec metanorma site generate
...
Anchor toc_02 has already been used at line 36
Anchor tocF_02 has already been used at line 9707
Anchor tocT_02 has already been used at line 19690
<aborted>

Relevant snippets:

sources/002-v4/sections/appendix-F/section-02.adoc:

[[tocF_02]]
=== 徒歩道の記述とLOD

[[]]
==== 交通(徒歩道)モデル

徒歩道とは、公共測量標準図式における徒歩道及び庭園路(ただし、庭園路のうち、自動車ターミナル内の道路は、広場として取得するため、徒歩道には含まない)をいう。
...

sources/002-v4/sections/appendix-F/section-04.adoc:

[[tocF_02]]
=== 作業上の留意事項

 道路と徒歩道の接合部の表現

道路と徒歩道(tran:Track)の接合する場所を区切らない。
...
hmdne commented 3 weeks ago

This originates from the incoming document. What would be the best behavior in your opinion? I think the current behavior is fine, because a writer can later debug duplicated IDs and fix them by hand.