{ pkgs, lib, config, ... }: with lib; let cfg = config.module.misc.markdown; in { options = { module.misc.markdown = { enable = mkEnableOption ""; }; }; config = mkIf cfg.enable { home = { packages = with pkgs; [ # VIEWERS glow # PRESENTATION slides # VERY SIMPLE presenterm # WITH IMAGES AND OTHER STUFF # TOOLS graph-easy # CREATE GRAPHS ]; }; xdg.configFile."mdtheme.json".text = with config.lib.stylix.colors; '' { "document": { "color": "#${base06}", "margin": 2 }, "block_quote": { "indent": 1, "indent_token": " │ " }, "list": { "level_indent": 2, "margin": 4 }, "paragraph": { "color": "#${base06}", "background_color": "#${base00}", "margin": 2 }, "heading": { "block_suffix": "\n", "color": "#${base0E}", "bold": true }, "h1": { "prefix": " ", "suffix": " ", "color": "#${base00}", "background_color": "#${base08}", "bold": true }, "h2": { "prefix": " ", "suffix": " ", "color": "#${base00}", "background_color": "#${base09}", "bold": true, "margin": 2 }, "h3": { "prefix": " ", "suffix": " ", "color": "#${base00}", "background_color": "#${base0B}", "bold": true, "margin": 2 }, "h4": { "prefix": " ", "suffix": " ", "color": "#${base00}", "background_color": "#${base0C}", "bold": true, "margin": 2 }, "h5": { "prefix": " ", "suffix": " ", "color": "#${base00}", "background_color": "#${base0D}", "bold": true, "margin": 2 }, "h6": { "prefix": " ", "suffix": " ", "color": "#${base00}", "background_color": "#${base0E}", "bold": true, "margin": 2 }, "text": {}, "strikethrough": { "crossed_out": true }, "emph": { "italic": true }, "strong": { "bold": true }, "hr": { "color": "#${base0D}", "format": "---" }, "item": { "block_prefix": "• " }, "enumeration": { "block_prefix": ". " }, "task": { "ticked": "[✓] ", "unticked": "[✗] " }, "link": { "color": "30", "underline": true }, "link_text": { "color": "#${base0B}", "bold": true }, "image": { "color": "#${base08}", "underline": true }, "image_text": { "color": "#${base09}", "format": "{{.text}} →" }, "code": { "color": "#${base0D}" }, "code_block": { "color": "#${base0E}", "block_prefix": "• ", "margin": 4, "chroma": { "text": { "color": "#${base06}" }, "error": { "color": "#${base00}", "background_color": "#${base08}" }, "comment": { "color": "#${base02}" }, "comment_preproc": { "color": "#${base03}" }, "keyword": { "color": "#${base09}" }, "keyword_reserved": { "color": "#${base09}" }, "keyword_namespace": { "color": "#${base09}" }, "keyword_type": { "color": "#${base09}" }, "operator": { "color": "#${base0B}" }, "punctuation": { "color": "#${base0C}" }, "name": { "color": "#${base08}" }, "name_builtin": { "color": "#${base08}" }, "name_tag": { "color": "#${base08}" }, "name_attribute": { "color": "#${base08}" }, "name_class": { "color": "#${base08}", "underline": true, "bold": true }, "name_constant": {}, "name_decorator": { "color": "#${base08}" }, "name_exception": {}, "name_function": { "color": "#${base08}" }, "name_other": {}, "literal": {}, "literal_number": { "color": "#${base0D}" }, "literal_date": {}, "literal_string": { "color": "#${base0D}" }, "literal_string_escape": { "color": "#${base0D}" }, "generic_deleted": { "color": "#${base0E}" }, "generic_emph": { "italic": true }, "generic_inserted": { "color": "#${base0E}" }, "generic_strong": { "bold": true }, "generic_subheading": { "color": "#${base0E}" }, "background": { "background_color": "#${base0E}" } } }, "table": {}, "definition_list": {}, "definition_term": {}, "definition_description": { "block_prefix": "\n🠶 " }, "html_block": {}, "html_span": {} } ''; }; }