<commit_before>h3 compile

|ruby
  Markascend.compile src, options

h3 compile options

- `:autolink`, default = `%w[http https ftp mailto]`
- `:enabled_macros`, default = `:all`
  You can choose what macros are allowed and what are not by setting a white list:
  |ruby
    enabled_macros: :all # the default is to enable all
    Markascend.compile post_from_other_people
- `:inline_img`, compile image into inlined base64, default = `false`

h3 adding macros

macro names are limited to names like ruby methods.

TODO

h3 extending the parser

The parser can also be extended with regular expression. For example, an extension to make `@` macros.

TODO
<commit_msg>update api doc<commit_after>h3 compile

|ruby
  Markascend.compile src, options

h3 compile options

- `:autolink`, default = `%w[http https ftp mailto]`
- `:enabled_macros`, default = `:all`
  You can choose what macros are allowed and what are not by setting a white list:
  |ruby
    enabled_macros: :all # the default is to enable all
    Markascend.compile post_from_other_people
- `:inline_img`, compile image into inlined base64, default = `false`

h3 adding macros

macro names are limited to names like ruby methods.

TODO

h3 customizing inline parsers

Inline parsers can be changed, or reordered

TODO

{'fraction_non_alphanumeric': 0.07109375, 'fraction_numerical': 0.009375, 'mean_word_length': 4.271604938271605, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2283962', 'n_tokens_mistral': 412, 'n_tokens_neox': 395, 'n_words': 167}