snosov1 / toc-org

toc-org is an Emacs utility to have an up-to-date table of contents in the org files without exporting (useful primarily for readme files on GitHub)
GNU General Public License v3.0
286 stars 29 forks source link

add better toc-org-special-chars-regexp #12

Closed JAremko closed 8 years ago

JAremko commented 8 years ago

Current toc-org-special-chars-regexp misses some characters. Can we use the same one that GitHub uses ? Here is a test string "Set AA053 Лыв № mon_osced font size(设置等宽字体)"
) - isn't what you think :smile:
replace-regexp-in-string with "\\W" outputs "#setaa053Лывавдыmonospacedfontsize设置等宽字体" It should be "set-aa053-Лыв--mon_osced-font-size设置等宽字体"so we probably need something like this "[^\\w\\-_ ]" but for some reason it removes everything.

snosov1 commented 8 years ago

fixed by https://github.com/snosov1/toc-org/pull/13