diff -urN v49/INC_LINK v50/INC_LINK --- v49/INC_LINK 1970-01-01 09:00:00.000000000 +0900 +++ v50/INC_LINK 2020-09-16 21:35:46.000000000 +0900 @@ -0,0 +1,8 @@ +swbuf +buf_NAME +pre +@NAME -nr +/ +swbuf +p +[[ detail | [[ NAME ]] | [[ paste | buf_NAME ]] ]] diff -urN v49/TOPE v50/TOPE --- v49/TOPE 1970-01-01 09:00:00.000000000 +0900 +++ v50/TOPE 2020-09-16 21:35:37.000000000 +0900 @@ -0,0 +1,13 @@ +/ +swbuf +p +[[ detail | 更新履歴 | [[ paste | buf_update ]] ]] + + +swbuf +buf_index +index + 2: +swbuf +p +[[ detail | 目次 | [[ paste | buf_index ]] ]] diff -urN v49/TOPS v50/TOPS --- v49/TOPS 1970-01-01 09:00:00.000000000 +0900 +++ v50/TOPS 2020-09-16 21:35:35.000000000 +0900 @@ -0,0 +1,7 @@ +swbuf +buf_update +tbl +tbl_ul +||日付 + ||変更内容 + diff -urN v49/ezmd.py v50/ezmd.py --- v49/ezmd.py 2020-09-06 21:26:41.000000000 +0900 +++ v50/ezmd.py 2020-09-16 21:35:43.000000000 +0900 @@ -5,7 +5,9 @@ import subprocess import yaml import six + import nkf +import inc_ut heads = [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'h7', 'h8', 'h9' ] modes = heads + [ 'p', 'pre', 'ul', 'dl', 'tbl', 'index', 'swbuf', 'macro' ] @@ -887,12 +889,18 @@ lst = list( map( rm_nl_tag, lst) ) return lst +def inc_exp(s): + inc = inc_ut.new() + inc.search_dirs.insert( 0, os.path.dirname( __file__ ) ) + return inc.exp( s ) + if __name__ == "__main__": opt_E = '-E' in sys.argv b = nkf.get_stdin() (s, nkf_opt) = nkf.to_str(b) + s = inc_exp( s ) lst = s_to_tag_lst(s, opt_E) lst = flat_map( tag_to_dic, lst )